Sunday, June 26, 2016

Find Distinct Column Values in C# DataTable


 Here is the code snippet to find the Distinct Column Values from a C# DataTable.


   DataView tempView = new DataView(tableInfo);
   DataTable distinctValues = tempView.ToTable(true, "ColumnName"); 



Happy Coding !

No comments:

Post a Comment

All Blogs so far ...