예제 #1
0
        //Parent Grid Bind
        #region [Parent Grid Bind]

        private void GrdParentBind()
        {
            try
            {
                objEWA.OrgId    = Convert.ToString(Session["OrgId"]);
                objEWA.CourseId = ddlCourse.SelectedValue.ToString();
                objEWA.BranchId = ddlBranch.SelectedValue.ToString();
                objEWA.ClassId  = ddlClass.SelectedValue.ToString();

                DataSet ds = objBL.ParentGridBind_BL(objEWA);


                if (ds.Tables[0].Rows.Count == 0 || ds == null)
                {
                    msgBox.ShowMessage("No Record Found !!!", "Saved", UserControls.MessageBox.MessageStyle.Information);
                }
                else
                {
                    GrdParent.DataSource = ds;
                    GrdParent.DataBind();
                }
            }

            catch (Exception exp)
            {
                throw exp;
            }
        }
예제 #2
0
 void clear()
 {
     GrdEmployee.DataSource = "";
     GrdEmployee.DataBind();
     GrdParent.DataSource = "";
     GrdParent.DataBind();
     GrdStudent.DataSource = "";
     GrdStudent.DataBind();
     txtMessage.Text = "";
 }
예제 #3
0
        //Parent Changing
        #region [Parent Changing]

        protected void GrdParent_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            try
            {
                GrdParent.PageIndex  = e.NewPageIndex;
                GrdParent.DataSource = dsGrdParent;
                GrdParent.DataBind();
            }
            catch (Exception exp)
            {
                GeneralErr(exp.Message.ToString());
            }
        }