Ejemplo n.º 1
0
    protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
    {
        nsskills.clsans           obj = new nsskills.clsans();
        List <nsskills.clsansprp> k   = obj.fnd_rec(Convert.ToInt32(GridView1.DataKeys
                                                                    [e.NewEditIndex][0]));

        TextBox1.Text = k[0].ansdsc;
        if (k[0].anssts == 'T')
        {
            CheckBox1.Checked = true;
        }
        else
        {
            CheckBox1.Checked = false;
        }
        Button1.Text     = "Update";
        ViewState["cod"] = k[0].anscod;
        e.Cancel         = true;
    }