08 2016 档案

NPOI操作excel
摘要:1、基本导出方法 private void ExportToExcel() { SaveFileDialog sdfExport = new SaveFileDialog(); sdfExport.Filter = "Excel文件|*.xls"; if (sdfExport.ShowDialog( 阅读全文

posted @ 2016-08-25 09:31 liuslayer 阅读(296) 评论(0) 推荐(0)

winform空间批量控制
摘要:第一版: private void RefreshControl(PanelEx panel, bool enabled, bool isClear) { for (int i = 0; i < panel.Controls.Count; i++) { if (panel.Controls[i] i 阅读全文

posted @ 2016-08-15 15:00 liuslayer 阅读(236) 评论(0) 推荐(0)

C# DataGridView控件清空数据完美解决方法
摘要:C# DataGridView控件绑定数据后清空数据在清除DataGridview的数据时:1.DataSource为NULL(DataGridView.DataSource= null;)这样会将DataGridView的列也删掉。 2.用DataGridview.Rows.Clear(); 提示 阅读全文

posted @ 2016-08-03 08:53 liuslayer 阅读(2076) 评论(0) 推荐(1)

导航