I am trying to display the contents of setting.setting file in DataGridView.
I have been successful in doing so by binding the data using BindingSource as follows
BindingSource bindingSource1 = new BindingSource();
bindingSource1.DataSource = Properties.user.Default.Properties;
settingsDataGridView.DataSource = bindingSource1;
Using this code, my DataGridView gets populated with the default values as below
Setting Name is read only.
Settings Value is editable.
I have provided a Save button on the form which has following code in
the OnClick event
Properties.user.Default.Save();
The idea is to give control to the user to change the settings using a simple interface.
Unfortunately,this does not do the trick. Save button does not change the values in settings.settings file and the modified data does not persists between the application runs.
My Questions:
- What am I doing wrong?
- How can I get this thing working?
Guys any help is really appreciated.

If using a PropertyGrid is fine also:
propertyGrid1.SelectedObject = Properties.Settings.Default; propertyGrid1.BrowsableAttributes = new AttributeCollection(new UserScopedSettingAttribute());Properties.Settings.Default.Save();Code should look similar to this:
If the Settings file contains settings with Scope "User" then they should be displayed and saved if changed.