<p>I'm trying to retrieve numeric values from a <code>DataGridView</code>. So far, the only way I've found is to retrieve them as a string and convert them to numeric.</p>

<pre><code>Convert.ToDouble(MyGrid.SelectedRows[0].Cells[0].Value.ToString());
</code></pre>

<p>There must be an easier way. The cell is originally populated from a <code>DataSet</code> with a numeric field value but since the <code>DataGridViewCell</code> object returns it as an object, I can't do a straight assignment. I must be missing something simple here.</p>

<p>Thanks.</p>

What is the error you are getting?
```
Convert.ToDouble
```
has an overloaded method that takes an object, so you shouldn't need the
```
ToString()
```
? Unless you are doing a
```
TryParse
```
?