using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
OleDbConnection conn = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\DataBase\\xxx.mdb");
OleDbDataAdapter da = new OleDbDataAdapter("select * from info", conn);
DataSet ds = new DataSet();
conn.Open();
da.Fill(ds);
conn.Close();
dataGridView1.DataSource = ds.Tables[0];
}
}
}