I have a dropdownlist of names that I call from a web service. I need to select distinct, firstname, middlename, lastname, then order by lastname ASC. Can anyone help me on this? I am having some issues getting this to work.
To distinct:
newDataTable = origDatatable.DefaultView.ToTable(True, "Column you want to DISTINCT")
OR
newDataTable = origDatatable.DefaultView.ToTable(True)) //Will distinct on all columns in the datatable
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.