my datatable;
dtData
ID | ID2
--------
1 | 2
1 | 3
dtData.Select("ID = 1"); one more rows;
i want row "ID = 1 And ID2 = 3" how to make ?
my datatable;
dtData
ID | ID2
--------
1 | 2
1 | 3
dtData.Select("ID = 1"); one more rows;
i want row "ID = 1 And ID2 = 3" how to make ?
Great example and very helpful. Wanted to add one thing - if you need to select on a string use something like:
Okay, here is how I do such things...
Notice in my Select() I put the criteria in Parens between AND and OR
Hope this helps! Mike V
Do you mean like this?:
Better use this :
Here you can copy your contents to another DataTable by using CopyToDataTable method of Linq while selecting the specific rows by filtering.
make sure dt has rows in it