title: How to refer to a cell in data grid view using its index in C#
body: <p>I have a purchase bill form in which the sold items must appear with their elements one of that element is the <strong>unit</strong> each time I will save the bill in the database each rows of the data grid view must check the <strong>unit text</strong> to make decisions on some conditions ... so how to refer to that cell in a condition where its index is 2<br>
  I tried to write it like this but it doesn't give any sense  </p>
  
  <pre><code>if(pBilldgv.Rows.IndexOf(Cell[2]))  
  </code></pre>
  
  <p>can any one give the syntax for referring to the cell in the data grid view .. regards</p>