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
865
Sorting after Bound collection changes.
posted

Hi there,

The Grid, backed by an IBindingList Datasource doesn't seem to resort itself when the underlying collection changes. Is there anything I need to "turn on" to enable re-sorting after underlying collection changes?

Mark

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    Mark,

    I don't think that the grid is designed to automatically resort each time the colletion changes, since there are many applications that update the data several times a second, and this could be very jarring to the user.  What you can do is call the RefreshSort method:

    this.ultraGrid1.DisplayLayout.Bands[0].SortedColumns.RefreshSort(true);

    -Matt

Children