There is nothing like this for the DataGridView. You will have to cycle
through the properties that you want to save, and figure out a format to
save it in. You could create your own object which mirrors the properties
of the DataGridView you want to save, and then serialize it, using binary
serialization, or XML Serialization if your class is structured correctly.
I'm not quite sure what you're trying to do.. If you want to influence
how the columns are added to the DataGridView by databinding (thus,
autogenerate columns = true) you can do this by implementing ITypedList
and return the PropertyDescriptors in the order you want them.. (eg: http://www.timvw.be/control-the-order-of-properties-in-your-class/)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.