I have been experimenting with how to properly store objects into persistent
application settings in user.config. I have read everything I could on MSDN
(and elsewhere) and I have successfully stored objects of type String,
DateTime, and ArrayList, for example.
So I then tried an unbound DataGridView but it serialized with a null value.
I tried the DataSource of the DataGridView; also null. I was going to try
DataGridViewRowCollection, since the debugger showed that does have some
data, but when I attempt to create a setting from the settings pane of the
properties page in Visual Studio 2005, it does not have
System.Windows.Forms.DataGridViewRowCollection as an available choice.
The key, as I understand it, is in this MSDN statement:
"Application settings can be stored as any data type that is XML
serializable or has a TypeConverter that implements ToString/FromString."
So how do I tell if a class is XML serializable or has the right kind of
TypeConverter?