标签:color dap ase ada 绑定 info 区别 ack tables
SqlDataAdapter sda = new SqlDataAdapter();
sda.SelectCommand = cmd;
DataSet ds = new DataSet();
sda.Fill(ds);
DataGrid1.ItemsSource = ds.Tables[0]; (这是winform中的写法)
----------------------------------------------------------------------------------------------
SqlDataAdapter sda = new SqlDataAdapter();
sda.SelectCommand = cmd;
DataSet ds = new DataSet();
sda.Fill(ds);
DataGrid1.ItemsSource = ds.Tables[0].DefaultView;(这是wpf中的写法)
标签:color dap ase ada 绑定 info 区别 ack tables
原文地址:http://www.cnblogs.com/cbywan/p/7354468.html