You are not logged in.

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