Search This Blog

Monday, July 19, 2010

Get Distinct values from a Columns in Datatable

DataTable dtcols = ds.Tables[0].DefaultView.ToTable(true, "Type");

Using above statemnt you will distinct types from the datatable ..here type is one of the column in datatable

No comments:

Post a Comment