B
BlackSun
Hi,
I wrote this code:
Private Function Carica() As IEnumerable(Of GCA)
Return From lista In DatiBase _
Where lista.Field(Of String)(Colonna3) <> "" _
Order By lista.Field(Of String)
(Colonna2),lista.Field(Of String)(Colonna3) _
Select New GCA With {.AAAA= lista.Field(Of String)
(Colonna1), _
.BBBB= lista.Field
(Of String)(Colonna2), _
.CCCC= lista.Field
(Of String)(Colonna3) _
}
End Function
It works fine but.... how can I change to get the list with distinct
rows for Colonna3
(= GCA.CCCC)?
Thanks in advance!
Cheers,
BlackSun
I wrote this code:
Private Function Carica() As IEnumerable(Of GCA)
Return From lista In DatiBase _
Where lista.Field(Of String)(Colonna3) <> "" _
Order By lista.Field(Of String)
(Colonna2),lista.Field(Of String)(Colonna3) _
Select New GCA With {.AAAA= lista.Field(Of String)
(Colonna1), _
.BBBB= lista.Field
(Of String)(Colonna2), _
.CCCC= lista.Field
(Of String)(Colonna3) _
}
End Function
It works fine but.... how can I change to get the list with distinct
rows for Colonna3
(= GCA.CCCC)?
Thanks in advance!
Cheers,
BlackSun