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

GGC cell validation

Thread ID:





91218 Nov 9,2009 11:32 PM UTC Nov 19,2009 10:38 AM UTC WinForms 4
Tags: Grouping
Vidya Nara
Asked On November 9, 2009 11:32 PM UTC


I have a GGC with custom validation in the TableControlCurrentCellValidating event handler. As suggested by a few postings on similar issues, I am able to throw a custom error message in the cell by displaying an icon and suppress the message box.

I want a scenario where even if the validation fails on the column, it should display the error message on the cell(only on cell and no message box) and the user should be able to still carry on with editing the other cells in the grid control.

Please find attached an example. Please note that if I type an alphanumeric entry in the Age column, it shows me an error in the cell, so far so good. However, I am not able to move the focus out of the cell or do any other operations until I type a valid entry. I would like to change that.

Can you please suggest a way to achieve it.

Thank you.



Jisha Joy [Syncfusion]
Replied On November 10, 2009 11:19 AM UTC

Hi Vidya,

Please fine the attached sample that shows error icon to the error cell and allows editing of other cells.

Please let me know if this helps.



Vidya Nara
Replied On November 16, 2009 04:05 PM UTC

Thank you. It works.


Vidya Nara
Replied On November 16, 2009 05:42 PM UTC

Hi Jisha,

Thanks for the solution. Although the solution works, Is there some other place that I can put the code instead of TableControlPrepareViewStyleInfo.

Whenever I try to edit a cell that has an invalid entry, the cell flickers continuously and is strains the eye.

Can you please suggest an alternative on how to avoid the flickering problem?

Thanks & regards,

Jisha Joy [Syncfusion]
Replied On November 19, 2009 10:38 AM UTC

Hi Vidya,

The error icon is drawn in the TableControlCellDrawn event and it willl fire continuously when a cell is drawed. One way to handle this issue to have the error icon in rowheader of the error cell, so that rowheader cell will not flicker as it is static one.



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

This page will automatically be redirected to the 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