Accessing column's value in datagridview
<p>I have a datagrid getting its data from the database. This datagrid has a column named "Room number".</p>

<p>I want to add content double click event so that when the user clicks on a specific room number database should be accessed and get the data related to that room number from database and display it on a separate form.</p>

<p>How to access this column by name that is "Room Number"?</p>

<pre><code>private void dgMaster_CellContentDoubleClick(object sender, DataGridViewCellEventArgs e)
{

}
</code></pre>
