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
210
Ultra Win Grid - Group By Column Header
posted

Unable to retain the order of grouping of column headers in an ultragrid.

What I am trying to do here is group by certain column headers and i would like to know a property that returns to me the order in which i have grouped by. For isntance, if i have columns A through E.
And i group by B, then A, then D

(B -> A -> D) i want some property that would tell me the exact position of each column in this hierarchy. Is there such a property? If anyone knows, please do let me know, thanks!!

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    Grouping is very tightly tied to sorting. So what you need to do is loop through the band.SortedColumns collection. The order of the columns in the collection is the order of the sorting/grouping.

Children