Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i need to search in a datatable which is created from a csv file using csvfilereader, can anyone tell me how to filter a datatable i tried the select method but i am not sure how to use it, and i am not using a database its a direct read from a csv file.
Posted

1 solution

DataRow[] rows = DataTable.Select("ColumnName=\"somevalue\"");


Details are hidden in what's called documentation
http://msdn.microsoft.com/en-us/library/system.data.datatable.select.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900