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.
Checkbox in JBGrid
Why this dosen't work?
|
Jabaco Source
|
1
|
JBGrid1.Parent.getColumnModel().getColumn(0).setCellEditor(New DEFAULTCellEditor(New JCheckBox()) )
|
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
|