using
DevExpress.XtraGrid;
//
...
string fileName ="c:\\XtraGrid_SaveLayoutToXML.xml";
privatevoid
Form1_Load(object
sender, System.EventArgs e) {
gridControl1.ForceInitialize();
// Restore the previously saved layout
gridControl1.MainView.RestoreLayoutFromXml(fileName);
}
privatevoid Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
// Save the layout to an XML file
gridControl1.MainView.SaveLayoutToXml(fileName);
}
GridControl读取xml和保存xml,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/shaomingrui/p/3732448.html