, , DataGridGiew. , , , .
, , :
DataGridView.SortedColumn , .
DataGridView.SortOrder ( )
DataGridView.Columns.
, , (, " " ) , . , - . , - , , - . , (, "" "" ). , :
Properties.Settings.Default.ColA_Width = MyDataGridViewInstance.Columns["ColA"].Width;
Properties.SEttings.Default.Save();
MyDataGridViewInstance.Columns["ColA"].Width = Properties.Settings.Default.ColA_Width;
The only caveats I can recall are that some of the values ββof the DataGridView properties are not just saved as strings (remember that your user preferences are eventually saved as XML), but it really depends on what settings you save.
source
share