Results 1 to 7 of 7

Thread: Vb6 msflexgrid

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2021
    Posts
    1

    Vb6 msflexgrid

    Hello, I have an existing grid filled with data. I have extracted that data, put it in a recordset and sorted it. That works fine but when I modify a specific row in the grid it does it successfully but it also retains the original data. Basically it is adding my sorted data to the top of the grid and pushing the same unsorted data to the bottom. My logic seems to be right, maybe it is something that I dont know about flexgrid, I am fairly new to VB6 so I wanted to get someone else opinion on this matter. Any help would be much appreciated.

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,388

    Re: Vb6 msflexgrid

    Welcome to the forum. Could you post the relevant code? Preferably a stripped down copy of your project as an attachment.

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Posts
    22,733

    Re: Vb6 msflexgrid

    Probably too new to have attachment rights yet.

  4. #4
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    13,675

    Re: Vb6 msflexgrid

    Is the grid bound to the recordset or are you populating it manually?

    If the former I would suspect that you are adding the modified record to the recordset rather than editing the existing record. If the latter then somehow you are adding the modified record to the grid in your code rather than replacing the existing record

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Posts
    22,733

    Re: Vb6 msflexgrid

    Feels like more of a job for a DataGrid instead.

  6. #6
    Frenzied Member
    Join Date
    Dec 2008
    Location
    Melbourne Australia
    Posts
    1,466

    Re: Vb6 msflexgrid

    Quote Originally Posted by dilettante View Post
    Probably too new to have attachment rights yet.
    I did not know we had that restriction.
    If you are correct then the OP (Original Poster aka Thread Starter) could look up my email address in my profile.
    Send the stripped down project to me, and I will attach it to this thread.

    Now who could argue with that ? (Blazing Saddles in the church),
    Rob

  7. #7
    Frenzied Member
    Join Date
    Feb 2003
    Posts
    1,388

    Re: Vb6 msflexgrid

    Quote Originally Posted by Bobbles View Post
    I did not know we had that restriction.
    If you are correct then the OP (Original Poster aka Thread Starter) could look up my email address in my profile.
    Send the stripped down project to me, and I will attach it to this thread.

    Now who could argue with that ? (Blazing Saddles in the church),
    Rob
    First time I heard of that restriction. If the op still needs help, I am willing to look at a stripped down copy of the project. Just send me a pm and I will pm my e-mail address.

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