Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 11860
  • Last Modified:

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 ..!
0
Kinger247
Asked:
Kinger247
  • 2
1 Solution
 
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now