Пример #1
0
        protected void GvCourses_Sorting(object sender, GridViewSortEventArgs e)
        {
            DataTable table = GetEnrolledStudents();

            table.DefaultView.Sort = e.SortExpression;
            GvCourses.DataSource   = table;
            GvCourses.DataBind();
        }
Пример #2
0
 private void LoadEnrolledStudents()
 {
     GvCourses.DataSource = GetEnrolledStudents();
     GvCourses.DataBind();
 }