码迷,mamicode.com
首页 > 其他好文 > 详细

GridControl读取xml和保存xml

时间:2014-05-18 20:15:22      阅读:300      评论:0      收藏:0      [点我收藏+]

标签:style   c   tar   color   a   com   

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

标签:style   c   tar   color   a   com   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!