validation event


Hi, I am using TableControlCurrentCellValidating of GCC to validate whether entered string is correct or not..



private void dgRangePlanGrid_TableControlCurrentCellValidating(object sender, GridTableControlCancelEventArgs e)
{
//logic to get the column name...
switch (changedColumn)
{
string newValue = GetTheTypedValue();// logic not written here
case Constants.STROKENUM_GRIDCOLUMN:
if (IsValidStrokeNumber(newValue))
// do something in a service class..
else
//show the error
e.inner,cancel=true;
break;
}
}

Now my problem is that after i finish the processing in my service class, (as shown in comments above), i dont want that TableControlCurrentCellAcceptedChanges should get fired.(which is happening currently.)

Please advice.

1 Reply

HA haneefm Syncfusion Team July 13, 2007 06:28 PM UTC

Hi Dinesh,

Try setting the CurrentCell.IsModified property to false in TableControlCurrentCellValidating event of the grid. Below is a code snippet

e.TableControl.CurrentCell.IsModified = false;

Best regards,
Haneef

Loader.
Up arrow icon