title: How to refer to specific column within datagrid
body: <p>I am currently creating a system within visual studio connecting to SQL database Management System. I am trying to write an if statement which takes the value that is in the specific column and if its equal to 'y' then I follow with an update statement.</p>
  
  <p>I'm having trouble with the line within the brackets, the rest I am able to do.</p>
  
  <pre><code>if( cmnpayment = "Y")
  {
    //UPDATE STATEMENT
  }
  </code></pre>