Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1060
SupportDataErrorInfo Slows down perfomance of grid
posted

Hi i have a grid bound to a datasource that support iDataErrorInfo

however whenever I turn on the

e.Layout.Override.SupportDataErrorInfo to cells or rows or rowsandcells

the grid performance becomes sluggish

 

restoring to SupportDataErrorInfo.None solves the problem, but i don't have the little red things anymore (naturally)

Each row has about 10 validation rules, simple ones, like not null or greater than 0

 

I am using net 2010.1 version 10.1.20101.1007

 

 

Parents Reply
  • 150
    posted in reply to Mike Saltzman

    Hi Mike,

    I did realize why the grid has to do what it does and I don't see another way based the interfaces we have to work with. In fact, I have the situation that you described: In addition to the grid, I have a panel with some controls bound to the same dataset as the grid. There are a few situations where the grid and the text boxes are out of sync (concerning the error state). But, this is not the real case; I'm just learning about these interfaces before I implement them for real. The error state seems fine if I do all my editing in the grid though.

    When I think about the whole thing, I'd really like to submit a request to Microsoft and ask for another interface, something like "INotifyDataError". Then, when bound controls receive this notification, they can update themselves.

    Thanks very much for replying,

    Vincent

Children