title: Get the value from cell as integer DATAGRIDVIEW C#
body: <p>I'm trying to create a general method to update my database for all my classes.
  I have a primary key, so when I want to update something I say "Do this, where id = @id"</p>
  
  <p>My question is how can I get the value of primary key in my datagridview as an integer to pass as an argument to my update method. I need a int value because I know how to make with string. It must be an int value.</p>