HA
haneefm
Syncfusion Team
October 10, 2007 02:52 PM UTC
Hi Ashes,
The reason is that the CheckBoxClick is raised just before the value of the current cell is changed. Try handling the CurrentCellChanged event. This is raised after the value has been updated. In the CurrentCellChanged event, you can access the underlying style value with grid.Model[CurrentCell.RowIndex, CurrentCell.ColIndex].CellValue.Here is code snippet
private void grid_CurrentCellChanged(object sender, EventArgs e)
{
GridCurrentCell cc = this.grid.CurrentCell;
GridStyleInfo style = this.grid.Model[cc.RowIndex, cc.ColIndex];
if(style.CellType == "CheckBox")
{
Console.WriteLine(style.CellValue);
}
}
Best regards,
Haneef