导出Excel时不导出隐藏的列方法,以及重新设置表头名称
摘要:
#region 事件--导出 private void xButtonExport_Click(object sender, EventArgs e) { //导出前验证 if (InventoryInquiresDataGrid.Rows.Count==0) { MessageBox.Show("没有要导出的数据!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } GetSerachInfo(); //获取查询条件 searchObject对象 StateBar sb = 阅读全文
posted @ 2012-09-13 16:05 林中的鱼 阅读(5276) 评论(0) 推荐(0) 编辑