title: Selected Rows in DataGridView always 0
body: <p>i wanted to show the message "You have not selected any rows" if the selected rows is 0.</p>
  
  <p>But, even i click the first row in datagridview, and i trace it, the selected rows always gave me 0.</p>
  
  <p>Why is it like that?</p>
  
  <p>Here is the code:</p>
  
  <pre><code>MessageBox.Show(dataGridView1.SelectedRows.Count.ToString()); // below function always run, because the selected rows always 0, even i clicked the first row in datagridview (when run the program)
  
  if (dataGridView1.SelectedRows.Count == 0)
  {
      if (choice.comboBox1.Text == "English")
      {
          System.Media.SoundPlayer sound = new System.Media.SoundPlayer(@"C:\Windows\Media\Windows Exclamation.wav");
          sound.Play();
          MessageBox.Show("You Have Not Selected Any Rows!", "Error");
      }
  }
  
  else
  {
      DeleteDatabase(sender, e);
  }
  </code></pre>