I want to get the object from my DataGridView which is a lon- resp. latitude-value (ex. 5.5186) converted to a double value. But I will get 55186 (from the example) without the decimal. How can I fix this?
private void dataGridView1_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
{
...
double lon = Convert.ToDouble(dataGridView1.Rows[e.RowIndex].Cells[2].Value);
double lat = Convert.ToDouble(dataGridView1.Rows[e.RowIndex].Cells[3].Value);
...
}