using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;
namespace DataGridViewTest
{
public partial class Form1 : Form
{
private string m_ConStr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Application.StartupPath + @"\DataBase\MyDB.mdb";
private DataSet ds;
private OleDbDataAdapter dataAdapter;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
OleDbConnection sqlCon = new OleDbConnection(m_ConStr);
string sql = "select * from Users";
dataAdapter = new OleDbDataAdapter(sql,sqlCon);
sqlCon.Close();
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载
- 1
- 2
- 3
- 4
- 5
前往页