日期:2014-05-20 浏览次数:20736 次
LinqToNorDataContext db = new LinqToNorDataContext(); IQueryable<Order> orders = from order in db.Orders where order.Customer.CustomerID == "ALFKI" select order;//这种方式在前台可以编辑 select new { order.CustomerID, order.OrderID, order.ShipCountry };//这种方式在前台不能编辑
DataTable source =dataGridView.DataSource as DataTable;//这种方式转换source 是null BindingSource bs = dataGridView.DataSource as BindingSource;//这种方式转换我怎么能知道哪些数据是编辑的或者新建的?