Hi Nick,
To handle, the validation error. You can handle it in the CurrentCellValidating Event. Here is the Code snippet.
private void gridDataBoundGrid1_CurrentCellValidating(object sender, System.ComponentModel.CancelEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
int i = Convert.ToInt32(this.gridDataBoundGrid1[cc.RowIndex,cc.ColIndex].CellValue);
if(cc.ColIndex == 2)
{
string newValue = cc.Renderer.ControlText;
try
{
double d = double.Parse(newValue);
}
catch
{
e.Cancel = true;
cc.Renderer.ControlText = i.ToString();
}
}
}
Refer to sample for details
Let me know if you further assistance,
Regards,
Madhan.
Forum_18Jan_39792.zip