public void PopulateSubjectGrid() { AbcDAL MyDAL = new AbcDAL(""); RGSubjectGrid.DataSource = MyDAL.PopulateSubject(); RGSubjectGrid.DataBind(); }
protected void RGSubjectGrid_NeedDataSource(object sender, GridNeedDataSourceEventArgs e) { AbcDAL MyDAL = new AbcDAL(""); RGSubjectGrid.DataSource = MyDAL.PopulateSubject(); }