title: get value from datagrid cell in C#
body: <p>How do I get the info from a certain cell in a data grid?  I want an event to happen when a person clicks the button in the 7th column, but the event depends on the value in the first column.  here's what i have, but nothing is happening.</p>
  
  <pre><code>if (InventoryDataGridView.CurrentCell.ColumnIndex == 7)
              {
  
                  if(InventoryDataGridView[0,0].Equals("Books"))
                  {
                      Books open = new Books();
                      open.Show();
                  }
  
          }
  </code></pre>
  
  <p>Nothing happens though</p>