Problem with validation in grouping grid

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

1 Reply

AD Administrator Syncfusion Team September 8, 2006 07:36 AM UTC

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.

Loader.
Up arrow icon