public void LoadDoctorInfo()
        {
            DataTable table = dManager.GetDoctorInfo();

            GrideViewDoctorInfo.DataSource = table;
            GrideViewDoctorInfo.DataBind();
        }
        protected void GrideViewDoctorInfo_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            Label     lblDelete = (Label)GrideViewDoctorInfo.Rows[e.RowIndex].FindControl("lbldocId");
            DataTable dt        = dManager.DeletedDoctorInfo(lblDelete);

            GrideViewDoctorInfo.DataSource = dt;
            GrideViewDoctorInfo.DataBind();
        }
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            string docUserId = txtDocUserName.Text.Trim();

            if (docUserId != null)
            {
                DataTable dt = dManager.GetDoctorInfoById(docUserId);
                GrideViewDoctorInfo.DataSource = dt;
                GrideViewDoctorInfo.DataBind();
            }
        }
 protected void GrideViewDoctorInfo_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Y")
     {
         int       index        = Convert.ToInt32(e.CommandArgument);
         Label     lblPublished = (Label)GrideViewDoctorInfo.Rows[index].FindControl("lbldocId");
         DataTable dt           = dManager.PublishedDoctorInfo(lblPublished);
         GrideViewDoctorInfo.DataSource = table;
         GrideViewDoctorInfo.DataBind();
     }
     if (e.CommandName == "N")
     {
         int       index          = Convert.ToInt32(e.CommandArgument);
         Label     lblUnPublished = (Label)GrideViewDoctorInfo.Rows[index].FindControl("lbldocId");
         DataTable dt             = dManager.UnPublishedDoctorInfo(lblUnPublished);
         GrideViewDoctorInfo.DataSource = table;
         GrideViewDoctorInfo.DataBind();
     }
 }
 protected void DoctorGridView_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     GrideViewDoctorInfo.PageIndex = e.NewPageIndex;
     //GrideViewDoctorInfo.DataSource = table;
     GrideViewDoctorInfo.DataBind();
 }