首页 > 其他 > 详细

GridControl读取xml和保存xml

时间:2014-05-18 20:13:57      阅读:1250      评论:0      收藏:0      [点我收藏+]

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

GridControl读取xml和保存xml

原文:http://www.cnblogs.com/shaomingrui/p/3732448.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!