Exemple #1
0
    protected void BindZuoyeBuzhi()
    {
        string zuoyeid = GridView1.SelectedValue.ToString();

        lbl_zuoyemingcheng.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[1].Text;
        DataTable dt = ZuoyeInfo.GetZuoyeBanji(zuoyeid);

        GridView2.DataSource = dt;
        GridView2.DataBind();
    }
Exemple #2
0
    protected void GridView2_RowEditing(object sender, GridViewEditEventArgs e)
    {
        GridView2.EditIndex = e.NewEditIndex;
        string zuoyeid = GridView1.SelectedValue.ToString();

        lbl_zuoyemingcheng.Text = GridView1.Rows[GridView1.SelectedIndex].Cells[1].Text;
        DataTable dt = ZuoyeInfo.GetZuoyeBanji(zuoyeid);

        GridView2.DataSource = dt;
        GridView2.DataBind();
    }