this a serarcing button for list on the data table but give an error please find this
this work in c# with access
DataTable tablo = new DataTable();
tablo.Columns.Add("no");
tablo.Columns.Add("urun");
tablo.Columns.Add("model");
tablo.Columns.Add("adet");
tablo.Columns.Add("boyut");
tablo.Columns.Add("aciklama");
try
{
DataRow satir;
satir = tablo.NewRow();
while (oku.Read())
{
// here
satir[0] = oku[0];
satir[1] = oku[1];
satir[2] = oku[2];
satir[3] = oku[3];
satir[4] = oku[4];
satir[5] = oku[5];
tablo.Rows.Add(satir);
}
oku.Close();
baglan.Close();
dataGridView1.DataSource = tablo;
// to here give an error
}
catch
{
MessageBox.Show(":D");
}