Results 1 to 3 of 3

Thread: [RESOLVED] DGV positions to last row instead of first row when displayed in VB 2010

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2010
    Location
    Lake Gaston, NC
    Posts
    453

    Resolved [RESOLVED] DGV positions to last row instead of first row when displayed in VB 2010

    Using VB 2010.

    I have many DGVs in my project.

    One particular DGV positions(triangle at far left) to the last row in the DGV instead of the first row when the form with the DGV is first displayed. What causes this? ie how can I fix it to position to the first row like all the other DGVs? The vertical scroll bar is displayed.

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,479

    Re: DGV positions to last row instead of first row when displayed in VB 2010

    select row 0 cell 0

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2010
    Location
    Lake Gaston, NC
    Posts
    453

    Re: DGV positions to last row instead of first row when displayed in VB 2010

    Thanks for the response. I used the following code which solved my problem:


    DataGridViewSP.CurrentCell = DataGridViewSP.Rows(0).Cells(0)


    Why did this happen in the first place, ie what property or what else could cause this problem??

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