title: Message box if no radio button selected in c#?
body: <p>Hi I was just wondering how to prompt an error if no radio button is selected? I am adding a lot of entries into a listview and I have it so you can select either Fixed or Zero (working with bonds) and I want that if neither is selected, a messagebox shows up. I tried:</p>
  
  <pre><code>if (rdbtn_Fixed == null &amp;&amp; rdbtn_Zero == null)
          {
              MessageBox.Show("Please select either Fixed or Zero coupon Type");
              return;
          }
  </code></pre>
  
  <p>But when I click the button to add to the listview, no error prompts up for some reason!!</p>
  
  <p>Any help would be greatly appreciated, thanks!</p>
  
  <p>Damian</p>