protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { GridView1.EditIndex = e.NewEditIndex; GridViewRow editingRow = GridView1.Rows[e.NewEditIndex]; RadioButtonList rbl = (RadioButtonList)editingRow.Cells[17].FindControl("rblist11"); rbl.Visible = true; TextBox txtamt = (TextBox)editingRow.Cells[18].FindControl("TextBox3"); txtamt.Enabled = true; if (rbl.SelectedItem.Value.Contains("1")) { txtamt.Enabled = true; } else if (rbl.SelectedItem.Value == "2") { txtamt.Enabled = true; } else if (rbl.SelectedItem.Value == "0") { txtamt.Enabled = false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)