Hello,
I have a UltraGrid on my Form. This is Connected with a UltraDataSource. On Member of the UltraDataSource is a boolean value.
The boolean value is Show as a Checkbox.
Now my question:If the user click on the Checkbox, I Need a Event, where I can see is the Checkbox checked or unchecked. I become a Event, but I must leave this actual row.
Is there any Event, what I becomes without changing the row ?
Thanks Andreas
Hello Andreas,
Thank you for posting in our forum.
When the user changes the value of the cell, while the cell is in edit mode, the CellChange event gets fired. You can handle this event to check the new value of the cell. You can use code like this:
private void UltraGrid1_CellChange(object sender, Infragistics.Win.UltraWinGrid.CellEventArgs e)
{
if (e.Cell.Column.Header.Caption == "Your Bool Column")
Debug.WriteLine(string.Format("Cell on row {0} has changed to {1}", e.Cell.Row.Index, e.Cell.Text));
}
More about CellChange event you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.UltraGrid~CellChange_EV.html
Please check the attached sample solution and let me know if this is what you are looking for or if I am missing something.