We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

validation event

Thread ID:

Created:

Updated:

Platform:

Replies:

64074 Jul 13,2007 10:23 AM Jul 13,2007 02:28 PM Windows Forms 1
loading
Tags: GridControl
dinesh upreti
Asked On July 13, 2007 10:23 AM


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.

haneefm [Syncfusion]
Replied On July 13, 2007 02:28 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;