title: Grid view - Using radiobutton for single choice and checkbox for multiple choice(Kind of Quiz Application)
body: <p>i have some questions in my sql table, where radiobutton and checkbox need to be used dynamically to display the questions and choices in a grid.
  my sql data table </p>
  
  <pre><code>question_id(int) | choice1 | choice 2 | choice3 | choice4 | correctanswer.
  </code></pre>
  
  <p>The assumption made here is that if the correctanswer length is =
  1 then it is radiobutton control type else if <code>correctanswer &gt; 1</code> , then it is check box type. Based on this can some one please help me how to display these question in a grid with appropriate radiobutton and checkbox controls and get the checked answers onclicking submit button.</p>