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
1020
Sorting based on hidden column
posted

Hi Friends,

I have 4 columns in my UltraGrid.
Out of these, 2 are hidden. I want
the grid to be sorted based on one of
the hidden columns when InitializeLayout()
is called. How do I do that ? 

Regards,
Sid. 

  • 469350
    Suggested Answer
    Offline posted

    e.Layout.Bands[0].SortedColumns.Add(e.Layout.Bands[0].Columns["My hidden column key"]);

  • 3186
    Offline posted

    Add that column to the sortedcolumns collection.  See some of the messages today about adding columns to the sortedcolumns collection for an example or check out the help docs.

    Nick