Search data from DataTable object in C#
How search data from DataTable object in C# .suppose we have a DataTable in C# And that DataTable has data .Its Data Column is id ,CustomerName,Age etc.DataTable has id from 1 to 50 with customerName and age then how we search data of id 20 to 25 ???

Pranay RanaPosted Apr 22, 2015, 5:18 AM
Pranay RanaPosted Apr 22, 2015, 5:10 AM
DataTable Customer= ds.Tables["Customer"];
List
IEnumerable
from cust in Customer.AsEnumerable()
where ids.Contains( Convert.ToInt32(cust.Field
select cust;
Nanhe SiddiquePosted Apr 22, 2015, 4:40 AM
}
if this helpful marks answer
Khargesh RajputPosted Apr 22, 2015, 4:27 AM
then dt.Select("id in(20,25)");
also you can use
Dataview to filter record