Hi,
I have a DataSet which has a column with repeated values. I want to extract the unique values (of that particular column) out of that dataset and should assign the values to a DataColumn. Is this possible?
Thanks in advance
-Lee2k
dim dt as datatable=MyDataSet.Tables("MyTableName")
dt.columns.add(new DataColumn("MyUniqueVal"))
for each rw as datarow in dt.rows
dim v as object=rw("MyLookUpColumn")
if tbl.select("MyLookColumn='" & v & "'").length=1 then
rw("MyUniqueVal")=v
end if
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.