From DataSet

DataTable dtStates = dsStates.Tables[0].DefaultView.ToTable(true, “state”);

From DataTable

DataTable dtResult = dtTemp.DefaultView.ToTable(true, “HistoryDate”);

From DataView

DataTable dtResult = dtView.ToTable(true, “HistoryDate”);

true or false returns do u want to distict row or not.

history date: is a column name

Advertisements