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
1705
How can I programatically click a column header?
posted

I would like to be able to sort a grid by clicking a column header through code.  How can I do this?

Parents
No Data
Reply
  • 37774
    posted

    The easiest way would be simply to add a column to the SortedColumns collection of the band:

    this.ultraGrid1.DisplayLayout.Bands[0].SortedColumns.Add("My Column Key", false);

    -Matt

Children
No Data