Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Oct 2001
    Location
    Suffolk, England
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Moving between fields (VB6)

    How do you programatically move between the cells in a data grid control?
    Thanks
    Allison

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Moving between fields (VB6)

    Do you want to move a visible selection bar for the user or do you want to retrieve values from different rows (with or without selecting them)?

  3. #3
    2 Star Lounger
    Join Date
    Oct 2001
    Location
    Suffolk, England
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Moving between fields (VB6)

    I want to move a visible selection bar
    Thanks

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Moving between fields (VB6)

    Okay, I admit, I was faking it: I have never used a DataGrid control. I just looked at their object model, and I think someone else needs to step in here and finish the job. Sorry!

  5. #5
    4 Star Lounger
    Join Date
    Aug 2002
    Location
    Dallas, Texas, USA
    Posts
    594
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Moving between fields (VB6)

    It's been a long time since I have used one, but I thought there was a 'selected' property, that you can set.

  6. #6
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Moving between fields (VB6)

    Have you tried using the Row and Column properties of the control? I can't remember whether it works in a regular datagrid, but the flexgrid will allow you to determine the current location that way.
    Charlotte

Posting Permissions

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