Persisting DataGrid user preferences (column widths, order, etc.)

Oct 16, 2008 at 8:57 PM
Has anyone already written any code they would like to share that saves the DataGrid's settings that might be considered user preferences? E.g. by default the user may sort, change column order, change column widths, etc. I would like to save those when the window closes and then restore them when the window is opened again in a later session.
Nov 6, 2008 at 2:00 PM
There are several solutions that exist out there on the web.  In particular, I thought this one,, was pretty interesting as it uses attached behavior to accomplish the persistence.