protected void Page_Load(object sender, EventArgs e) { //Pulling all data from course table and putting it in a DataTable _courseTable = _courseDao.PullData(); if (!IsPostBack) { //Setting GridView data based off of DataTable GrdCourse.DataSource = _courseTable; GrdCourse.DataBind(); ValidateRegistrations(); } }