I have this datagrid view:

Now when the first row is double clicked i want its all data to be saved in variables, like the field name should come in a variablename name aand First Name should come in another variaablename fname and so on.
I have been trying to get the values using DataGridView1.CellContentDoubleClick event, with the property called SelectedCells but the intellisense is not providing me any information on how i can get the value of each column in that particular selected row.
Finally i got the answer working for me so sharing it here: