GR
Golda Rebecal
Syncfusion Team
September 26, 2007 03:57 AM UTC
Hi,
You can achieve this requirement by checking the required condition in CurrentCellValidating event.
Here is the code snippet:
void gridDataBoundGrid1_CurrentCellValidating(object sender, CancelEventArgs e)
{
GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell;
int value = Int32.Parse(cc.Renderer.ControlText);
if (value < 10 || value > 20 && cc.ColIndex == 1)
{
e.Cancel = true;
MessageBox.Show("Enter value between 10 and 20");
}
}
Kindly let me know if this helps you.
We appreciate your interest in Syncfusion products.
Best regards,
Golda