You are not logged in.

Dear visitor, welcome to Jabaco - Community. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

sedrok

Beginner

  • "sedrok" started this thread

Posts: 9

Date of registration: Apr 26th 2009

  • Send private message

1

Monday, April 5th 2010, 11:09am

Checkbox in JBGrid

Why this dosen't work?

Jabaco Source

1
JBGrid1.Parent.getColumnModel().getColumn(0).setCellEditor(New DEFAULTCellEditor(New JCheckBox()) )

sedrok

Beginner

  • "sedrok" started this thread

Posts: 9

Date of registration: Apr 26th 2009

  • Send private message

2

Tuesday, April 6th 2010, 9:55am

Tried this code - it works, but glitchy.


Jabaco Source

1
2
3
4
5
6
7
8
9
10
11
12
13
14
JBGrid1.Editable = jbEditOnClick

JBGrid1.DataMatrix(1,0) = "test"
JBGrid1.DataMatrix(1,0).CellBackColor = RGB(255,0,0)
JBGrid1.DataMatrix(1,0).CellForeColor = RGB(255,255,0)

JBGrid1.Parent.getColumnModel().getColumn(1).setCellEditor(New DEFAULTCellEditor(New JCheckBox()))

JBGrid1.DataMatrix(0,1) = 0
JBGrid1.DataMatrix(0,1).Editable = True
JBGrid1.DataMatrix(1,1) = 0
JBGrid1.DataMatrix(1,1).Editable = True
JBGrid1.DataMatrix(2,1) = 0
JBGrid1.DataMatrix(2,1).Editable = True

Rate this thread
WoltLab Burning Board