Hello all,

I coded a simple application that selects two columns of data from a database into a datagridview. I also made it so that when you double click a row of data, it will open a messagebox and display the value of the particular cell that was clicked on in the grid, such as below:



That is exactly what I want it to do.

What I do not want it to do is do that for the "Description" column. I only want it to pull the value from the "Code" column.

The purpose of this event will be to open another dialog that displays more information about the particular "Code" that was double clicked, not description. I do not want anything to happen by double clicking "Description"

Thanks for your help and let me know if you need more information.