Dear all,
I have done below but it still does not work.
this.dtgList.DisplayLayout.Bands[0].SortedColumns.Add("VARIATION_NAME", true);
or
this.dtgList.DisplayLayout.Bands[0].Columns["VARIATION_NAME"].SortIndicator = SortIndicator.Descending;
Hi,
What version of the grid are you using?
I don't see any reason why this should not work. Can you post a small sample project demonstrating the issue?
(1) DataType = String
(2) When assigning to ultragrid1.datasource, I added the code after datasource to add sorted columns.
What is the DataType of the VARIATION_NAME column in the grid?
In what event are you calling this code?