文件的导入导出

时间:2015-07-11 05:18:53
【文件属性】:

文件名称:文件的导入导出

文件大小:13KB

文件格式:CS

更新时间:2015-07-11 05:18:53

Excel 导入导出

Excel 文件的导入导出 //导入 private void 导入ToolStripMenuItem_Click(object sender, EventArgs e) { DgvDate.DataSource = null; //查找文件 填充DGV string txtPath = ""; OpenFileDialog loOpenFile = new OpenFileDialog(); loOpenFile.Filter = "CSV文件(*.csv)|*.csv"; loOpenFile.Title = "查找CSV文档"; if (loOpenFile.ShowDialog() == DialogResult.OK) { txtPath = loOpenFile.FileName; } DgvDate.DataSource = DoCSV(txtPath); }


网友评论