I have the code:
dt = collListItems.GetDataTable().AsEnumerable() .Where(a => Convert.ToString(a[\"Expertise\"]).Contains(expertise) && Co
How about this solution :
DataRow[] filtered_rows = data.Tables[0].Select(filter_string); if(filtered_rows.Length > 0) { filtered_data = filtered_rows.CopyToDataTable(); } else { filtered_data.Clear(); }
data.Tables[0] is the source table and filtered_data is the resultant table.
data.Tables[0]
filtered_data