DataTable DataRow Delete Duplicate Rows

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

i have a datatable in which iam creating 2 datacolumns , one is SampleID and
second is TestType.

iam creating a datarow depending on a for loop, if the for loop goes 5 times
it will insert 5 records.

every thing works well, what i want is to delete the Duplicate Rows

the data what iam getting is

SampleID TestType
6836 NMR
6836 NMR
6836 NMR
6836 MS
6836 MS
6836 Report

what i want is it should just have
SampleID TestType
6836 NMR
6836 MS
6836 Report

thats it, any help would be greatful.

Thanks & Regards
Vijay Pote
 
Can you have your loop check to see if the row is already there, and if it
is, just not do the insert?
 
Thanks Marina,

I am trying that, but is there anyway to do it in DataTable.

Thanks & Regards
Vijay Pote
 
Back
Top