Hi Ram.
Thank you for your interest in Syncfusion products.
You can be used to validate the changes that are made to a grid cell: CurrentCellValidateString and CurrentCellValidating. The CurrentCellValidateString is fired every time a key is pressed and the current text is passed as part of the EventArgs. The CurrentCellValidating is only fired once when the user tries to leave the current cell.
private void grid_CurrentCellValidating(object sender, CancelEventArgs e)
{
GridCurrentCell cc = this.grid.CurrentCell;
// Prevent user from blanking out cells in column 2.
if (cc.ColIndex == 2)
{
string val = cc.Renderer.ControlText;
if (val.Length == 0)
{
// No empty string in col 2.
e.Cancel = true;
}
}
if (cc.Renderer.StyleInfo.CellType == "DateTime")
{
//code
}
// Grid_CurrentCellValidating
}
Please refer to our UG link.
http://help.syncfusion.com/ug_93/User%20Interface/Windows%20Forms/Grid/Documents/5334howtovalidatechangesmadetoagridcell.htmHope this helpful for your reference.
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GridValidation.doc1031007410.zipPlease let me know if you have further concerns.
Regards,
Ragamathullah B.