Example #1
0
        private void DisplayAdmins()
        {
            StoredProcedures sp = new StoredProcedures();
            DataSet ds = sp.GetAdmins();

            ViewState["Admins"] = ds;

            AdministratorsGridView.DataSource = ds;
            AdministratorsGridView.DataBind();

            //Needed for correct representation of GriedView headers using Bootstrap css
            try
            {
                AdministratorsGridView.HeaderRow.TableSection = TableRowSection.TableHeader;
            }
            catch { }
        }