2
Answers

C# checking if a row in a datagridview is selected

Photo of Ari

Ari

13y
19.5k
1
How would I accomplish this? 

I've tried the following, but to no avail.

      if (dgvClient.SelectedRows.Count == 1)
      {
        selected = true;
      }

Thanks.

Answers (2)