I'm using vb.net framework 3.5
I have a dataset name dsData
which contains the next info
Page User Permission
Simulator agarza 1
Buys agarza 1
File loads agarza 0
scenaries agarza 0
Simulator mjobs 1
Buys mjobs 0
File loads mjobs 1
scenaries mjobs 1
i want to obtain the distinct names of users, I'm trying to do something like this:
Dim query= From row In dsData.Tables(0).AsEnumerable() _
Select row.Field(Of String)("User") Distinct
in the previous code i get this error: Definition of method 'Distinct' is not accessible in this context.
and then I would like to have the result in a datatable, doing something like this
Dim dt As DataTable = query.CopyToDataTable()
someone can help me?...