title: CurrentRow.Headercell.Selected of DataGridView always be false in C#?
body: <p>In Visual Studio 2010.</p>
  
  <ol>
  <li><p>Create a Visual C# "Window Form Application" project</p></li>
  <li><p>Put a DataGridView component on the form and add some columns.</p></li>
  <li><p>Create Mouse click event:</p>
  
  <pre><code>private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
  {
      if (dataGridView1.CurrentRow.HeaderCell.Selected)
      {
          MessageBox.Show("Header Selected");
      }
  
      if (dataGridView1.CurrentRow.HeaderCell.State != DataGridViewElementStates.None)
      {
          MessageBox.Show("Not None");   
      }                
  }
  </code></pre></li>
  <li><p>Select a row by clicking a row header in run time, but never show any MessageBox.</p></li>
  </ol>
  
  <p>Why is that?</p>