赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。