.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> C# >> Post New Resource Bookmark and Share   

 Subscribe to Articles

How Get Distinct from DataTable using defaultview

Posted By:shankey       Posted Date: July 13, 2011    Points: 200    Category: C#    URL: http://www.dotnetspark.com  

How Get Distinct from DataTable using defaultview in Windows application or web application using C#
 

 

Get Distinct from DataTable using defaultview

How to get distinct column values from DataTable?
Following application shows how to do this.

Create DataTable



Calling CreateDatatable() function.




On binding gridview with datatable



Get distinct Name from datatable




On binding datatable with grid view after getting distinct name




Get All details from datatable

 

On binding datatable with grid view

 

Get Distinct Age details from datatable



On binding datatable with grid view after getting distinct name

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend