title: How to get some cell in last row of datagridview?
body: <p>i have table like below<br>
  <img src="https://i.stack.imgur.com/zadjj.jpg" alt="enter image description here"></p>
  
  <p>these are the code that i'm trying to do, no hope though, i want to get that <code>CAid014</code> value</p>
  
  <pre><code>string splitter = dataGridView1.Rows[dataGridView1.RowCount].Cells[0].ToString();
  MessageBox.Show(splitter); // to print what splitter got
  </code></pre>
  
  <hr>
  
  <p>i'm using datagridview1.rowcount so the datagridview1.rows will get the last rows. and cells[0] will get the 0 index of row and it got error.</p>
  
  <p>how do i get that <code>CAid</code> cells ? </p>
  
  <hr>
  
  <p>solved : i miss that value like this</p>
  
  <pre><code> string splitter = dataGridView1.Rows[dataGridView1.RowCount].Cells[0].value.ToString();
  </code></pre>