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.

Problem with validation in grouping grid

Thread ID:

Created:

Updated:

Platform:

Replies:

49015 Sep 8,2006 02:51 AM Sep 8,2006 03:36 AM Windows Forms 1
loading
Tags: GridControl
Prathima Venkobachar
Asked On September 8, 2006 02:51 AM

Hi,

In our application, we are using grouping grid.
Once we enter invalid data in the cell which is of type int and press “Enter” it shows the error message. But if we click the mouse in the next cell which is read only and disabled, the grid does not throw the error message. Even if we double click on any cell which is read only and disabled, it is not throwing the error. It raises the corresponding event for double click.
Is there any way to raise the validation on click or double click on read only and disabled cell.

In the sample application, id is int and state is read only and disabled field

.Net framework version – 1.1
Syncfusion version - 3.3

Thanks& Regards,
Prathima

CS34.zip

Administrator [Syncfusion]
Replied On September 8, 2006 03:36 AM

Hi Prathima,

Try calling the CurrentCell.Validate method in TableControl.MouseDown event. Below is a code snippet

//form load..
this.grid.TableControl.MouseDown +=new MouseEventHandler(grid_MouseDown);

private void grid_MouseDown(object sender, MouseEventArgs e)
{
this.grid.TableControl.CurrentCell.Validate();
}

Let me know if this helps.
Thanks,
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.

;