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
75
Sorting by two columns
posted

On the server side code I want to be able to sort by two columns.  First by Column1 and then by Column2.  But when I do it it only sorts by Column2.  If I take the code out to sort Column2 it will sort Column1.  Am I doing something wrong here?

.Bands(0).Columns.FromKey("Column1").SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator.Ascending
.Bands(0).SortedColumns.Add(.Bands(0).Columns.FromKey("Column1"),
True)

.Bands(0).Columns.FromKey("Column2").SortIndicator = Infragistics.WebUI.UltraWebGrid.SortIndicator.Ascending
.Bands(0).SortedColumns.Add(.Bands(0).Columns.FromKey("Column2"),
True)