$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
DataGridView WinForms Control
Create data gird view in C# with modern user interface for your Windows Forms applications
Home > WinForms UI Controls > User Manual > Save and Load Layout in Grid in C#

Grid Data Save/Load layout for C# Windows Forms

The DataGridView Controls for Windows Forms applications are an amazing component for design modern user interface. This cool control provides large flexibility to meet any critical requirements of applications nowadays. After you integrating this powerful Data Grid Control into your Windows Forms application, the end users of your applications can easily customize endless views that can be managed programmatically, including drag and drop, reordering, resizing, add or delete rows or columns.

How to Implement a Save and Layout in C#

The DataGridView Control provides the save and load layout feature for end users of your application to keep their grid data settings and restore the settings and changes later as they demand. The following are the samples showing how to implement a Save Layout and load layout button event handlers in C# Windows Forms projects.
C# Code snippet to implement a Save Layout button event handler,

private void SaveButton_Click(object sender, EventArgs e)
{
string s = "default.xml";
SaveFileDialog dialog = new SaveFileDialog();
dialog.Filter ="xml files (*.xml)|*.xml|All files (*.*)|*.*";
dialog.Title = "Select a xml file";
if (dialog.DisplayDialog() == DialogResult.OK)
{
s = dialog.FileName;
}
this.ketticGridView.SaveLayout(s);
}
C# Code snippet to implement a Load Layout button event handler,

private void LoadButton_Click(object sender, EventArgs e)
{
string s = "default.xml";
OpenFileDialog dialog = new OpenFileDialog();
dialog.Filter ="xml files (*.xml)|*.xml|All files (*.*)|*.*";
dialog.Title = "Select a xml file";
if (dialog.DisplayDialog() == DialogResult.OK)
{
s = dialog.FileName;
}
this.ketticGridView.LoadLayout(s);
}
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls