Home Forums WPF controls Xceed DataGrid for WPF How do I reset sorting after Itemsource rebuild.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #22632 |

    I have a datatable as my itemssource. When I rebuild this table the grid shows the new data wonderfully. However, any sorting I applied by clicking the ColumnHeader before the rebuild, still shows up on the grid even though the data is not in that order anymore after the rebuild. How do I programmatically reset my column headers to their original unsorted state or better yet have the grid show the new data in the order that the grid was set to before the rebuild?

    Imported from legacy forums. Posted by Rick (had 2825 views)

    User (Old forums)
    Member
    Post count: 23064

    I’ll second that question. Generally the default for most grids is that after a new binding the sort is reset to whatever the first (default) sort is (in the data).

    Ideally I’d like to be in control of the sorting, so I could make the last sort order being remembered a user preference.

    Imported from legacy forums. Posted by Emmanuel (had 261 views)

    User (Old forums)
    Member
    Post count: 23064

    I too would like to save the last sort order as a user preference.

    Imported from legacy forums. Posted by Rick (had 251 views)

    User (Old forums)
    Member
    Post count: 23064

    Has anyone figured out how to do this? Thanks.

    Marty

    Imported from legacy forums. Posted by Marty (had 4144 views)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.