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
140
Getting sort order
posted

This may be a silly question... but how go I get the current sort order (descending or ascending) from UltraWinGrid?

Thanks in advance.

 

/KT

Parents
No Data
Reply
  • 69832
    Offline posted

    It isn't a silly question, just a more complicated one than you probably thought. Since UltraGrid supports sorting on multiple columns, it exposes a collection (off UltraGridBand) named SortedColumns. This contains zero or more UltraGridColumn objects, depending of course on how many columns the grid is sorted on. UltraGridColumn exposes a SortIndicator property, which will return either Ascending or Descending depending on the sort order.

Children
No Data