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
100
Set default sort column - dynamically
posted

Hi,

I need to set the default sort column the first time the grid is loaded.

The following code has been added just after calling DataBind

this.UltraWebGrid1.Bands[0].SortedColumns.Add(this.UltraWebGrid1.Bands[0].Columns[0]);

 Unfortunately, this does not effect the sorting at all and the rows remain unordered.  Do you need to set the sort columns by a particular stage in the page or ultragrids life cycle?

Cheers

Russ