Home › Forums › WinForms controls › Xceed Grid for WinForms › Grid CheckBoxEditor › Reply To: Grid CheckBoxEditor
I figured it out.
The problem was atempt to suscribe to CheckboxEditor as the cell editor because this cant work.
THIS IS THE VB WAY TO SUSCRIBE TO COLUMNS CHECKBOXES CHECKCHANGED EVENT !
I am doing it in unbound grid
Dim cbox As New Xceed.Grid.Editors.GridCheckBox
‘then when u declare columns you add this for column where you have checkboxes
grid1.Columns(0).CellEditor = cbox
‘Ater columns have been declared you add handler
AddHandler cbox.CheckedChanged, AddressOf editor_CheckedChanged
‘Finally handle the event as you please
Private Sub editor_CheckedChanged(ByVal sender As System.Object, ByVal e As EventArgs)
MsgBox(“checked”)
End Sub
Cheers and enjoy
Imported from legacy forums. Posted by Ma (had 511 views)