title: ASP.NET CheckBox in ListView
body: <p>So I have a list view and inside I have a checkbox and two radio button. The checkbox controlls where the radiobuttons are disabled or enabled.</p>
  
  <p>As you can see I have it working for the first item in the list (items[0]) but how do I make it work for the rest of the rows in the list view?</p>
  
  <p>Thanks</p>
  
  <pre><code>System.Web.UI.WebControls.ListView lv2 = ListView1.Items[0].FindControl("ListView2") as System.Web.UI.WebControls.ListView;
              CheckBox cb = lv2.Items[0].FindControl("ChargedCB") as CheckBox;
              RadioButton acceptRB = lv2.Items[0].FindControl("AcceptedRB") as RadioButton;
              RadioButton disputedRB = lv2.Items[0].FindControl("DisputedRB") as RadioButton;
  
              if (cb.Checked == false)
              {
                  acceptRB.Checked = false;
                  disputedRB.Checked = false;
  
                  acceptRB.Enabled = false;
                  disputedRB.Enabled = false;
              }
              else 
              {
                  acceptRB.Enabled = true;
                  disputedRB.Enabled = true;
              }
  </code></pre>