Hi Maria,
Thank you for using Syncfusion products.
In order to validate the current cell with desired set of values , you can use the TableControlCurrentCellAcceptedChanges event to validate the entered cell value. Here we have provided the sample in which the changes done in a cell can be allowed or rejected based upon the user input. Please refer to the following code snippet and the attached sample.
CodeSnippet:
// Trigger the required event.
this.gridGroupingControl1.TableControlCurrentCellAcceptedChanges += new GridTableControlCancelEventHandler(gridGroupingControl1_TableControlCurrentCellAcceptedChanges);
void gridGroupingControl1_TableControlCurrentCellAcceptedChanges(object sender, GridTableControlCancelEventArgs e)
{
DialogResult result;
result = MessageBox.Show("Allow the Record Selection Changes", "Selections", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == System.Windows.Forms.DialogResult.No)
{
e.Inner.Cancel = true;
e.TableControl.CurrentCell.Deactivate(true);
}
}
Sample:
Regards,
Amresh S.