Following line will give you distict result from dataset/datatable .
DataSet ds=new DataSet();
//code to fill dataset from database.
DataTable dt=new DataTable();
dt=ds.Tables["0"].DefaultView.ToTable(true,”columnName”);
//here true means you want distict result.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment