Reputation: 39
I have a question concerning the XtraGrid from DevExpress and google or or DevExpress pages did not help...
I have a XtraGrid in my form. The form has different different views. Each view has some rows of data grouped by one or more columns of the data. I need a way to save the view (which rows are collapsed and which are not) PERSISTENT when loading another view and load it when I want to get that view again. It only works while the form has the specific handles of the rows...
So how can I save the state of the rows? The DevExpress article "How to preserve the XtraGrid View state" did not... I can already save the grouping but not the "visual style" of the grid.
Upvotes: 0
Views: 627
Reputation: 17848
Take a look at the How to preserve the XtraGrid View state example(GitHub) which demonstrates how to preserve the XtraGrid's expansion, selection, focused row and its position related to the top, and restore this state later. You can use this example as a starting point and then add any required functionality.
Upvotes: 0