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
890
Grid bound to a class, what determines default sort?
posted

Hi,

I have the grid bound to a class.  Is there a way to flag a particular property in the class to be the one that the grid should sort by, by default?  What is the default sort behaviour of the grid?

 Thanks,

Scott

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi Scott,

        The grid doesn't so any sorting by default, it will display the data in the order it is provided by the data source.

        If you want to sort the grid by default, I would recommend using the InitializeLayout event of the grid and set the SortIndicator on the column you want sorted.

        Or, you could sort your data in the data source itself before binding to the grid.  

Children
No Data