title: extracting data from a SpGridView selected row
body: <p>Using <a href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.webcontrols.spgridview.aspx" rel="nofollow noreferrer">SPGridView</a>, I want to fill textboxes with the SPGridview Selected Row Data on a button click event.</p>
  
  <pre><code>txtCode= SPGridView.SelectedRow.Cell[1].Text;
  </code></pre>
  
  <p>On debugging, it shows <code>Cell[1]</code> is empty but it is showing data in the Grid.</p>
  
  <p>How can this be achieved?</p>