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
1000
Sort not occurring
posted

I have an UltraWinGrid whose DataSource is an UltraDataSource.

I created a button on the form whose action is to sort the data in the grid on the Carrier column. I use the following code:

                With ugOrderList.DisplayLayout.Bands("Orders")
                    .SortedColumns.Add("Carrier", False, False)
                    .SortedColumns.RefreshSort(True)
                End With

However, when the button is clicked nothing happens. The grid does not sort. If I manually click on the Carrier column, it will sort, but it won't sort programatically.

What's wrong?