"Clear Value" context menu doesn't reset ErrorText

3 posts, 0 answers
  1. Sarah
    Sarah avatar
    4 posts
    Member since:
    Jun 2012

    Posted 25 Feb 2013 Link to this post

    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. Sarah
    Sarah avatar
    4 posts
    Member since:
    Jun 2012

    Posted 26 Feb 2013 Link to this post

    This is not an issue with Telerik. Apparently the ErrorText was tied to a property to my class that had the error messages.
  3. Stefan
    Stefan avatar
    2911 posts

    Posted 28 Feb 2013 Link to this post

    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,
    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.
Back to Top