2012-03-22 6 views

答えて

1

MSDN Documentation

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; 
+0

あなたの最初の答えはありませんでした。申し訳ありませんが私の質問が誤解を招くが、このコードは私のために働いた。 var query =(table.Select( "TRUE"、string.Empty、DataViewRowState.CurrentRows).Select(s => new {col = s.Field ( "col")})); – user1215811

関連する問題