Skip to main content

TimeSort Error

Comments

3 comments

  • Dapfor Team

    Hi,

    The problem is in incorrect implementation of the Compare() method. Indeed, if the grid has sorted columns it stores rows in a sorted way. When you change the sort in a column or the grid gets a notification from INotifyPropertyChanged it calls a kind of the List.Sort (IComparer) method. Thus during value comparing they ​​should be unchanged. When you compare TimeStamp values they can be changed and the grid will throw exceptions.

    In order to avoid this problem, the grid does a snapshot of values ​​by which it sorts. These values are passed as value1 and value2 to the Compare() method. So you should cast these values and compare them.

    Best regards,

    Dapfor

     

    0
  • Michael Sage

    Thanks, that worked. I appreciate your quick response. I know I can be pain in asking too many questions at times but thanks for bearing with me.

    0
  • Dapfor Team

    Hi,

    We are interested in quality of our products and answering your questions, we better understand our customers' needs.

    Best regards,

    Dapfor

    0

Please sign in to leave a comment.

Powered by Zendesk