Hi,
I am using UltraWinGrid which contains a boolean column. So each cells is displayed correctly as a checkbox.
The grid data is handled by a binding object.
When the user clicks on a cell, the checkbox is checked or unchecked as expected. But my data object is notified of a CellValueChanged only when the user clicks outside of the grid.
There is any way to handles the checkbox clicks or state changed to force a data update ?
I tried to handle the CellChange event and, if it is a checkbox cell, force an exit of the edit mode. But it doesn't work as expected, it blocks the native checkbox behavior...
Best regards,
Jean-Charles Durand
Hello ,
What could you do is to handle InitializeLayout event of UltraGrid in order to get CheckEdito of the Boolean column and to hook for its ValueChanged event. You could use code like:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
{
CheckEditor editor = (CheckEditor)e.Layout.Bands[0].Columns[0].Editor;
editor.ValueChanged += new EventHandler(editor_ValueChanged);
}
void editor_ValueChanged(object sender, EventArgs e)
Debug.WriteLine("Cell Value was changed ");
So you will be notified when check editors stat was changed by the user.
Please let me know if you have any further questions.