How do you deselect a row in a DataGridView ?

How do you deselect a row in a DataGridView ?
when I populate the DataGridView, it always highlights the top row ...!!  and I can't get it to stop ..!
LVL 10
Kinger247Asked:
Who is Participating?
 
tolgaongCommented:
did you try
DataGridView1.Rows(0).Selected = False
0
 
iboutchkineCommented:
for datagrit it is
'unselect previously selected row
DataGrid1.UnSelect(DataGrid1.CurrentRowIndex)

check if something like that exists fro datagridview
otherwise use the  tolgaong  suggestion

0
 
Kinger247Author Commented:
Your a star, can't believe it eas that easy !!!

cheers !!
0
 
tolgaongCommented:
I'm glad to help you ;)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.