-
Jan 18th, 2012, 05:29 AM
#1
Thread Starter
Addicted Member
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.
-
Jan 18th, 2012, 05:47 AM
#2
Addicted Member
Re: DGV load
datagridview is made out of datagridrows and these are made up out of cell's!
-
Jan 18th, 2012, 05:49 AM
#3
Thread Starter
Addicted Member
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?
-
Jan 18th, 2012, 05:59 AM
#4
New Member
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.
-
Jan 18th, 2012, 08:52 AM
#5
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|