private void bind() { Educom.clsqst obj = new Educom.clsqst(); GridView1.DataSource = obj.disp_rec(Convert.ToInt32( ViewState["cod"])); GridView1.DataBind(); }
protected void GridView2_RowEditing(object sender, GridViewEditEventArgs e) { Label3.Text = GridView2.DataKeys[e.NewEditIndex][1].ToString(); Educom.clsqst obj = new Educom.clsqst(); List <Educom.clsqstprp> k = obj.disp_rec(Convert.ToInt32( GridView2.DataKeys[e.NewEditIndex][0])); GridView3.DataSource = k; GridView3.DataBind(); AjaxControlToolkit.ModalPopupExtender mpe = (AjaxControlToolkit. ModalPopupExtender) (GridView2.Rows[e.NewEditIndex].FindControl ("lk1_ModalPopupExtender")); mpe.Show(); e.Cancel = true; }