Labels

slider

Recent

Navigation

How to pick distinct rows from datatable in asp.net

distinct row in datatable c#, distinct row in datatable, datatable select distinct rows in vb net

Introduction

How to pick distinct rows from Datatable in ASP.net, below is written code snippet to go through this one.
Firstly declare default view and dv.ToTable(True,Param1,Param2,Param3), and we can pass the parameter to unique column.

Vb.Net code snippet

  Dim dv As New DataView
  dv = dt.DefaultView
  Dim uniquetabel As DataTable = dv.ToTable(True, "Column1", "Column2")

Summary

Share

Anjan kant

Outstanding journey in Microsoft Technologies (ASP.Net, C#, SQL Programming, WPF, Silverlight, WCF etc.), client side technologies AngularJS, KnockoutJS, Javascript, Ajax Calls, Json and Hybrid apps etc. I love to devote free time in writing, blogging, social networking and adventurous life

Post A Comment:

0 comments: