private void LoadInTeacherGrid()
        {
            AllTeacherDetailsShowInGrid allTeachersDetailsShowInGrid = new AllTeacherDetailsShowInGrid();
            DataTable dt = allTeachersDetailsShowInGrid.ShowAllTeacherDetailsInGrid();

            allTeacherListGridView.DataSource = dt;
            allTeacherListGridView.DataBind();
        }
Пример #2
0
        private void LoadInGrid()
        {
            AllTeacherDetailsShowInGrid allTeacherShowInGrid = new AllTeacherDetailsShowInGrid();
            DataTable dt = allTeacherShowInGrid.ShowAllTeacherDetailsInGrid();

            if (dt.Rows.Count > 0)
            {
                allTeacherGridView.DataSource = dt;
                allTeacherGridView.DataBind();
            }
            else
            {
                Response.Write("There are no teacher's available!");
            }
        }