0

I create DataGridView that is populated from SQL query. I created event CellClick and method. I set an if condition to press cells on specific column but if the datagridview is empty (because query select result empty) and I try to press titles of the column appear following error:

enter image description here

I don't find how can i manage this exception event

Thank you

I try to add many conditions options

Peter Macej
  • 4,831
  • 22
  • 49

0 Answers0