-
DGV load
Hi all
I have an unbound DataGridView
I want to be able to add just a few rows in one specific column, save this to My.Settings, and be able to load those words back into the DGV at the press of a button, make any changes, then re-save in My.Settings.
I don't want to have to bind my DGV to a source.
Help is appreciated.
-
Re: DGV load
datagridview is made out of datagridrows and these are made up out of cell's!
-
Re: DGV load
Thanks for the reply. So is there anyway of saving the text entered into cells to be re-loaded when the form reopens?
-
Re: DGV load
In the form settings you should be able to click browse and select another data type.
I don't know if you can use set the My.Setting type as Datagrid. It is System.windows.forms.
-
Re: DGV load
Store the values in a StringCollection in My.Settings. Loop through the collection and add rows to the grid at startup. Loop through the rows of the grid and add the values to the collection at shutdown.