Results 1 to 3 of 3

Thread: [RESOLVED] Select Row in Datagridview

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    394

    Resolved [RESOLVED] Select Row in Datagridview

    How would I make a row in a datagridview "selected" without clicking on the grid? For example, on form load I want row 5 to be the selected row. CAn this be done?

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Select Row in Datagridview

    VB Code:
    1. DataGridNameHere.Rows(4).Selected = True

    use 4 because of the 0 based index of the rows collection.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jul 2005
    Posts
    394

    Re: Select Row in Datagridview

    I knew that it would be simple. Thanks.

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