Home Forums WinForms controls Xceed Grid for WinForms How to validate only rows that have changed using a provider?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #16747 |

    Is there a way, using a ValidationProvider, to only validate rows of a data bound grid that have changed and ignore those that haven’t?  Right now it validates everything even if nothing changed.  When you factor in child tables which also get validated in the same fashion, it becomes a performance hit.  Suggestions?  Thanks in advance.

    Imported from legacy forums. Posted by Nick (had 497 views)

    User (Old forums)
    Member
    Post count: 23064

    Can you provide more details?  At what level do you do the validation and how do you do it?

    Imported from legacy forums. Posted by André (had 200 views)

    User (Old forums)
    Member
    Post count: 23064

    Found the solution:  Go through DataRows of each grid, determine if the row has been changed (by looking at the underlying datasource), and call the provider’s validate method on each row that has been changed.  I was originally calling it on the whole grid which causes the problem.  Thanks.

    Imported from legacy forums. Posted by Nick (had 708 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.