工作
fly_ball
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c#中将datagridview中的数据生成为excel文件
开发环境:vs2019 语言:c# private void output_excel_Click(object sender, EventArgs e) { if (dataGridView1.Rows.Count == 0) { MessageBox.Show("DataGridView中内容为空,请先导入数据!", "提示", MessageBoxButtons.OK, MessageBoxIcon.W原创 2021-02-26 09:30:37 · 402 阅读 · 0 评论 -
c#将datagridview中数据生成为xml文件
开发环境:vs2019 没多b话直接上代码 private void button1_Click(object sender, EventArgs e) { DataTable dt = GetDataGridView(dataGridView1); DataSet ds = new DataSet(); ds.Tables.Add(dt); ds.WriteXml(F原创 2021-02-26 09:27:28 · 1448 阅读 · 1 评论 -
C#选择本地csv文件读取
开发环境:VS 2019 语言:c# 窗口:winform private void button2_Click(object sender, EventArgs e) { OpenFileDialog open = new OpenFileDialog() { Filter = "*|*.csv" }; open.ShowDialog(); dataGridView1.DataSource = Load原创 2021-02-26 09:24:17 · 807 阅读 · 0 评论 -
在winfrom选择某个excel文件读取到DataGridView控件中
开发环境:Visual Studio 2019 1.需要在项目引用中引用Microsoft office object LIbrary方法 2. 3.在winform窗体中放入一个botton控件,datagridview,和combox控件 4.在botton的单击事件中进行操作 DataTableCollection tableCollection; private void btnbrowse_Click(object sender, EventArgs e) {原创 2021-02-26 09:13:11 · 355 阅读 · 0 评论 -
C# 获取指定文件夹中所有的文件(包括子文件夹的文件)
using System; using TopDAL; using System.IO; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Data; namespace ConsoleApplication { class Program { static void Main(string[]转载 2021-02-26 08:57:59 · 2468 阅读 · 1 评论
分享