Results 1 to 2 of 2

Thread: highlight the current row in DataGridView

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2011
    Posts
    184

    highlight the current row in DataGridView

    How do you highlight the current row in DataGridView?

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: highlight the current row in DataGridView

    Set the row.selected property to true
    Code:
    DataGridView1.CurrentRow.Selected = True
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width