Ejemplo n.º 1
0
        protected void GvStudents_Sorting(object sender, GridViewSortEventArgs e)
        {
            DataTable table = GetStudents();

            table.DefaultView.Sort = e.SortExpression;
            GvStudents.DataSource  = table;
            GvStudents.DataBind();
        }
Ejemplo n.º 2
0
 private void LoadStudents()
 {
     GvStudents.DataSource = GetStudents();
     GvStudents.DataBind();
 }