当前位置:   article > 正文

c# DEVexpress控件应用【winform】_c# winform引用devexpress

c# winform引用devexpress

1.XtraTabControl

   TabPage的切换:xtraTabControl.SelectedTabPage = xtraTabControl.TabPages[index];  //index为tabpage在控件中的索引

2.winform导出Excel文件

   public void ToExcel()
            {
               SaveFileDialog fileDialog = new SaveFileDialog();
               fileDialog.Title = "导出Excel";
               fileDialog.Filter = "Excel文件(*.xls)|*.xls";
               DialogResult dialogResult = fileDialog.ShowDialog(this);
               if (dialogResult == DialogResult.OK)
               {
                   DevExpress.XtraPrinting.XlsExportOptions options = new DevExpress.XtraPrinting.XlsExportOptions();
                   gridControl1.ExportToXls(fileDialog.FileName);
                   DevExpress.Xtr

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/309759
推荐阅读
相关标签
  

闽ICP备14008679号