Devexpress ASPX Gridview Doldurmak
Devexpressde gridview doldurmak aşağıdaki gibi olmaktadir;
bag.Open();
SqlDataAdapter myAdapter = new SqlDataAdapter();
DataSet myDataSet = new DataSet();
SqlCommand komut = new SqlCommand("up_stok_hareket @action = 'L'", bag);
myAdapter.SelectCommand = komut;
myAdapter.Fill(myDataSet, "up_stok_hareket");
ASPxGridView1.DataSource = myDataSet;
ASPxGridView1.AutoGenerateColumns = true;
ASPxGridView1.DataBind();
bag.Close();
bag.Open();
SqlDataAdapter myAdapter = new SqlDataAdapter();
DataSet myDataSet = new DataSet();
SqlCommand komut = new SqlCommand("up_stok_hareket @action = 'L'", bag);
myAdapter.SelectCommand = komut;
myAdapter.Fill(myDataSet, "up_stok_hareket");
ASPxGridView1.DataSource = myDataSet;
ASPxGridView1.AutoGenerateColumns = true;
ASPxGridView1.DataBind();
bag.Close();
Kaydol:
Kayıt Yorumları
(
Atom
)
Hiç yorum yok :
Yorum Gönder