Hi Babu,
thank you for your reply.
But I am using Gridcontrol. It does not have the CurrentCell.CurrentCellErrorMessage event. I am using Syncfusion 3.0.0.19.
Kun
>Hi Kun,
You can handle the CurrentCellErrorMessage event of grid, which you can display your own custom message box whenever the grids CurrentCell.DisplayWarningText (as a result of some kind of validation error) is called.
Please refer the attached sample for the implementation.
InvalidDatatype.zipprivate void gridDataBoundGrid1_CurrentCellErrorMessage(object sender, Syncfusion.Windows.Forms.Grid.GridCurrentCellErrorMessageEventArgs e)
{
MessageBox.Show(e.Text,"NewError",MessageBoxButtons.OKCancel );
e.Cancel = true;
}
Best Regards,
Babu