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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

validation event

Thread ID:

Created:

Updated:

Platform:

Replies:

64074 Jul 13,2007 02:23 PM UTC Jul 13,2007 06:28 PM UTC WinForms 1
loading
Tags: GridControl
dinesh upreti
Asked On July 13, 2007 02:23 PM UTC


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 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

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;