Datagridview -- Forecorlors and Style

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a DVG (vb.net 2005) with several columns...occasionally I would like
the user to be able to change the color or Style (bold, italic...). Changing
the color or style is easy...however, I'm not sure how to effectively save
these changes.

Any suggestions...

Thanks...Arne
 
Arne,

I think you have a couple options, mainly to save this as a user preference,
and load it next time the grid loads.

Partly, this depends on where your data is coming from. If you are using
serialization, then those properties of the DGV should be serialized as
well.

Or else, you could try saving it as a user settings value within the
project, and loading it when the grid loads.
This article explains application settings.
http://www.codeproject.com/vb/net/appsettings2005.asp
In the settings config page, you can also set a setting to be user specific.

Hope this helps,

Steve
 
Back
Top