Anyways: this is how I did it:
DataTable myFilteredTerms = objSomethn.getresultsinDT ...
DataColumn[] myPrimaryKeyColumn = new DataColumn[1];
myPrimaryKeyColumn.SetValue(myFilteredTerms.Columns[0], 0);
myFilteredTerms.PrimaryKey = myPrimaryKeyColumn;
...
if (myFilteredTerms.Rows.Contains(intTheIdYouAreLookingFor))
{
...
}
(first column is the one with the ID-s ...)
as always, if you got pro or contra ... tell me bout it
1 comment:
Hi,
Thanks, this code helped me in solving my problem.
Post a Comment