New to Telerik UI for WinForms? Start a free 30-day trial
Save/Load Layout
Updated on Aug 27, 2026
RadDataLayout allows changes at runtime. The control can export/import its layout which is stored in Xml format. This funtionality can be utilized by calling the SaveLayout and LoadLayout methods.
Save the layout.
C#
private void SaveLayout()
{
using (SaveFileDialog sfd = new SaveFileDialog())
{
sfd.DefaultExt = ".xml";
sfd.Filter = "XML files (*.xml)|*.xml|All files (*.*)|*.*";
if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.radDataLayout1.LayoutControl.SaveLayout(sfd.FileName);
}
}
}Load the Layout
C#
private void LoadLayout()
{
using (OpenFileDialog ofd = new OpenFileDialog())
{
ofd.DefaultExt = ".xml";
ofd.Filter = "XML files (*.xml)|*.xml|All files (*.*)|*.*";
if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
this.radDataLayout1.LayoutControl.LoadLayout(ofd.FileName);
}
}
}The layout can be saved/loaded with the customize dialog as well.