Hi,
You should use Select() method of the DataTable object like shown below.
string filterCondition = string.format(CultureInfo.CurrentCulture, "{0} = '{1}'", "CompanyName", "Test");
DataRow[] selectedRows = dt.Select(filterCondition);
foreach(DataRow rowItem in selectedRows)
{
}
Please let me know if this is what you are looking for.
Thanks,
Debasis.