|
-
April 30th, 2009, 08:41 AM
#1
load settings.settings in an array and datagrid
I am trying to load the properties settings.settings contents in a datagrid so it can be modified and the saved to the settings.settings file.
I would like to do something elegant and extensible so when I add new settings I dont have to change all the form code.
So basically I do not want to use something like xxx= Settings.Default.Param1.ToString() but rather do a loop and put it all in an array and put it in the datagrid.
After several hours of googling I still can't find a way to do that loop, I can get the number of items in settings.settings using Settings.Default.Properties.Count but not address them in a loop using foreach or something like Settings.Default.[i].
Any help or pointers welcome.
Ps: I'd like to keep it simple using C# methods and functions rather than reading the file and doing de-serialisation.
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
|