title: How do I get the selected row data from a data grid view using SelectedRows?
body: <p>I have a table that I am displaying in a data grid view control. The user selects a single row from the control and presses a button. I need to retrieve the cells from that row and store them as strings. </p>
  
  <p>Exactly how do I get the data using the SelectedRow method? I've been working on this for several hours and I'm at the end of my rope. Here's an example of something I've tried:</p>
  
  <pre><code>DataGridViewCellCollection selRowData = dataGridView1.SelectedRows[0].Cells;
  </code></pre>
  
  <p>If I try to access selRowData[x], the return value does not contain my data. </p>