Results 1 to 2 of 2

Thread: Stupid MSFlexGrid & MSHFlexGrid Question

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Edgerton, WI
    Posts
    381
    On most of my projects that are database related, I have used the data control and a data grid. I simply needed to place the data control on the form, set its data source and record source and then link the grid to the data control by setting it as the source. Then as I clicked on the move next, move last, move previous and move first arrows on the data control I could see the grid current record in the grid move accordingly.

    However, if I try to use MSFlexGrid or MSHFlexGrid and trhe appropriate data control for the respextive grids, the grid reflexts the data (ie. fills with the proper records) but I cannot get the grid to follow as I step through the database using the data control's arrow keys.

    What am I doing wrong?

    On an unrelated matter, I have another project that displays fields on a form from several different tables from the same database. What I want to do is place three data controls on the form (two of which, will not be visable) and connect the appropriate fields(controls that display the fields) to the appropriate data control. This works fine. What I would like to know is how I can keep these controls in sync. I want to click on the visable control and have all three controls respond accordingly. For instance if I move to the 5th record with the visable data control, the other two would do the same, thus allowing all the controls (ie. Text bowes, combobxes, etc) to display the appropriate data.

    Thanks for your assistance and patience,
    Rev. Michael L. Burns

  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    To your second question first.

    I think you have to make the controls behave in sync with each other through coding only. There seems to be no other way.


    To your first question now.

    Perhaps you have to use the dbGrid control and not the MSH or MSFlexGrid.
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

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