Beispiel #1
0
        public void BindGridProblem()
        {
            SqlConnection con = new SqlConnection(ConnectionString());

            con.Open();
            SqlCommand     cmd = new SqlCommand("Select * From PatientProblem where PatientId = '" + LblPatId.Text + "' ", con);
            SqlDataAdapter da  = new SqlDataAdapter(cmd);
            DataSet        ds  = new DataSet();

            da.Fill(ds);
            GrdProblem.DataSource = ds;
            GrdProblem.DataBind();
        }
Beispiel #2
0
 protected void GrdProblem_RowEditing(object sender, GridViewEditEventArgs e)
 {
     GrdProblem.EditIndex = e.NewEditIndex;
     GrdProblem.DataBind();
     BindGridProblem();
 }