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
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi Fred,

    Who implemented the IDataErrorInfo interface? Is this a custom implementation of your own, or are you using a DataSet or some other data source?

    The only reason I can think of why SupportsDataErrorInfo would slow the grid down is if your implementation of the interface is inefficient. For example, if you perform the validation on the data every time the IDataErrorInfo.Error property is accessed, then that would be a problem since the grid is going to hit this property quite a lot.

    I'm pretty sure that the DataSet/DataTable implementation of this interface only performs validations when the data changes, and then it caches the error information so that when someone asks for the Error property, it's not doing anything but returning a string.

     

     

Children