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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridGroupingControl cell error message

Thread ID:

Created:

Updated:

Platform:

Replies:

59467 Apr 13,2007 09:26 AM UTC Apr 14,2007 06:06 AM UTC WinForms 1
loading
Tags: GridControl
Vladymyr
Asked On April 13, 2007 09:26 AM UTC

I have gridGroupingControl. I want to add cell error message into for example second cell in define column. How can I do it?

Jeba S [Syncfusion]
Replied On April 14, 2007 06:06 AM UTC

Hi Vladymyr,

You can try handling TableControlPrepareViewStyleInfo or QueryCellStyleInfo and set the error message in the CellTipText property.

private void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
GridTableCellStyleInfo style = e.Style as GridTableCellStyleInfo;
if(e.TableCellIdentity.DisplayElement.Kind == DisplayElementKind.Record )
{
e.Style.CellTipText = "Your Error message";
}
}

Please refer the attached the sample that validates the cell value and shows the ErrorProvider with respect to the current cell in a button click.

Here is the link for the sample:
http://websamples.syncfusion.com/samples/Grid.Windows/F59467/main.htm

Kindly let us know if this helps.

Best Regards,
Jeba



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.

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

;