实时更新DataGridView 合计值
摘要:public partial class Form1 : Form { public Form1() { InitializeComponent(); dataGridView1.DataSourceChanged += new EventHandler(dataGridView1_DataSourceChanged); dataGridView1.CellValueChanged += new DataGridViewCellEventHandler(dataGridView1_CellVa...
阅读全文
posted @
2013-11-25 11:38
z5337
阅读(421)
推荐(0) 编辑
导出为文本格式
摘要:public void DataTable2Txt(DataTable dt, string fullFileName) { if (dt == null) return; try { using (FileStream fs = new FileStream(fullFileName, FileMode.Create)) { using (StreamWriter sw = new StreamWriter(fs...
阅读全文
posted @
2013-11-18 11:06
z5337
阅读(242)
推荐(0) 编辑