5 Ekim 2013 Cumartesi

ms sql de data grid view ekleme

  OleDbConnection bag = new OleDbConnection("Provider=Microsoft.Ace.OleDb.12.0;Data Source=data.accdb");
        DataTable tablo = new DataTable();
        OleDbCommand kmt = new OleDbCommand();
        public void listele()
        {
            tablo.Clear();
            OleDbDataAdapter adtr = new OleDbDataAdapter("Select * From ogrbil ", bag);
            adtr.Fill(tablo);
            dataGridView1.DataSource = tablo;
        }
Share: