using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.OleDb;
namespace _6_6
{
public partial class Form1 : Form
{
public string path = "";//文件路径
public Form1()
{
InitializeComponent();
}
private void 导入Excel表ToolStripMenuItem_Click(object sender, EventArgs e)
{
dataGridView1.DataSource = null;
dataGridView1.Rows.Clear();
dataGridView1.Columns.Clear();
OpenFileDialog file = new OpenFileDialog();
file.Filter = "Excel文件|*.xls|Excel文件|*.xlsx";