Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データテーブルがあり、約100行あります。セルの値が一致するすべての行を取得するために、Cell の 1 つの値に対してデータテーブルの選択クエリが必要です。
あなたが望むDataTable.Selectメソッドと同じくらい簡単かもしれません...
DataTable.Select メソッド (文字列)
var query = (from x in dataTable.Rows.OfType<DataRow>() where x.Field<string>("columnName") == "someValue" select x).ToList();