This is a migrated thread and some comments may be shown as answers.

"Clear Value" context menu doesn't reset ErrorText

2 Answers 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sarah
Top achievements
Rank 1
Sarah asked on 25 Feb 2013, 09:40 PM
I have a column that is required.  This validation is being done in CellValidating.
When I use "Clear Value" from the context menu, it sets e.Row.ErrorText correctly saying ".... is required.".
After I enter a value and commit it to the grid, e.Row.ErrorText is still saying the same thing.

What am I missing?
What is "Clear Value" really doing?

2 Answers, 1 is accepted

Sort by
0
Sarah
Top achievements
Rank 1
answered on 26 Feb 2013, 07:34 PM
This is not an issue with Telerik. Apparently the ErrorText was tied to a property to my class that had the error messages.
0
Stefan
Telerik team
answered on 28 Feb 2013, 02:16 PM
Hi Sarah,

I am glad to hear that you have resolved this issue in your solution.

For the community, I would like to clarify that the ErrorText should be cleared when the validation passes in the validating events, as demonstrated in this documentation article: http://www.telerik.com/help/winforms/gridview-editors-data-validation.html.

Kind regards,
Stefan
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Join us for a FREE webinar to see all the new stuff in action.

Interested, but can’t attend? Register anyway and we’ll send you the recording.
Tags
GridView
Asked by
Sarah
Top achievements
Rank 1
Answers by
Sarah
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or