Home Forums WinForms controls Xceed Grid for WinForms Grid CheckBoxEditor Reply To: Grid CheckBoxEditor

User (Old forums)
Post count: 23064

You can handle the EditLeft event on the cell, and in the event handler verify that the new value has been committed, and if so, update the database with the new value.

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

For Each cell as Cell In GridControl2.DataRowTemplate.Cells
AddHandler cell.EditLeft, AddressOf Me.Cell_EditLeft

End Sub

Private Sub Cell_EditLeft(ByVal sender As Object, ByVal e As EditLeftEventArgs )

System.Diagnostics.Debug.WriteLine( e.Commited.ToString() )

End Sub

Imported from legacy forums. Posted by André (had 545 views)