A DataView provides various views of the data stored in
a DataTable. Using a DataView, you can expose the data in a table with
different sort orders, and you can filter the data by row state or based on a
filter expression.
DataView
Example:
public void BindGridDataAll()
{
DataSet
ds = new DataSet();
//Get data
from database and fill into dataset
ds = ObjClass.GetData();
dvData = ds.Tables[0].DefaultView;
// Here we
specify which column you want to sort
dvData.Sort = "SortString";
GridView.DataSource = dvData;
GridView.DataBind();
}