Friday, 30 January 2015

Filter Row From DataTable using C#


Filter Row From DataTable using C#
 ----------------------------------------------
public static DataTable FilterRows(DataTable source, String filterString) 
{
DataTable result = source.Clone(); 
DataRow[] rows = source.Select(filterString); 
foreach (DataRow row in rows) 

result.ImportRow(row); 

return result; 

1 comment: