After a user has moved around columns and changed the sort order in a grid, I would like them to be able to reset the layout to the original. Is there a way to do this with code and without closing & opening the form again?
Hi Thomas,
The grid's DisplayLayout has Save and Load methods. So you could save the layout and store it in a stream or a file. Then you could give the user a reset button that loads the layout.
Thanks Mike.
Is there a way to tell if a changes to the grid layout were applied (new column, sort order, etc), and clear out the layout to the design time settings when a new version of an app is deployed?
Also, to give you more background, I'm saving the layout in the user scoped settings, and deploying the app with Clickonce.