.Net Links

Monday, November 16, 2009

How to get Distinct Values from Dataset in single line

How to get unique columns from a dataset using simple command ?

DataTable distinctUniqueCustomer = dataTable.DefaultView.ToTable("Customer", true, "EMPNO");

Where EMPNO is the field Name , Customer is the source DataTable

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]



<< Home