Get Value From DataGridView Cell
How do I get the value of an item in a datagridview (dgv) cell?
My project has a windows form with a datagridview. The data source for the dgv is the results of a query. The columns of the dgv displays information for items to be processed. The primary key from the database row is in a hidden column. The multiselect property of the dgv is set to false. The user selects a row in the dgv and clicks a button on the form to begin processing. I need to place the primary key value into a variable to use for SQL query parameters in other automations.
I tried using the dgv current row cells get item method, but the method returns a DataGridViewCell object.