您能为我提供一个示例语法吗?
这样的东西?
var qry = (ds.table.Select(s => s.col, string.Empty, DataViewRowState.ModifiedCurrent));
感谢
答案 0 :(得分:1)
MSDN Documentation查询DataRowView。
DataTable table = new DataTable();
table.Columns.Add("A", typeof(int));
table.Rows.Add(1);
table.Rows.Add(2);
table.Rows.Add(3);
table.AcceptChanges();
DataView view = new DataView(table);
table.Rows[1][0] = -2;
table.Rows[2][0] = -3;
view.RowStateFilter = DataViewRowState.ModifiedCurrent;
var query = from DataRowView rowView in view
select rowView;