title: How to get column value of grid in C# Windows application?
body: <p>How to get  column value of grid in C# Windows application?</p>
  
  <p>When I clicked on the cell, at that time it should get column values.</p>
  
  <pre><code>private void gridAgentDetails_Click(object sender, EventArgs e)
  {
      for (int i = 0; i &lt; this.gridAgentDetails.CurrentRowIndex; i++)
      {
          string str = gridAgentDetails.Text;
      }
  
  }
  </code></pre>