Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: dbGrid dissection

  1. #1
    Join Date
    Feb 2009
    Location
    SW Connecticut/NY area
    Posts
    9,181

    Default dbGrid dissection

    I've got an old dbGrid that's working nicely but incredibly complex so converting to a cj grid really isn't an option or maybe it is but I really don't want to do it.

    So here's my question. The dbGrid has 21 columns in it and the users want to remove column 8. Ordinarily that wouldn't be difficult but the way this is written there are numerous references to iColumn = column # so removing one in the middle would involving all manor of changes. And I may have to do that but what if I set the width to 0 and removed the header text. I assume that the cursor would still stop there when tabbing through the columns so could I put a "Next" in the column entering method? Or is there some other more betterer way to do this? If not I guess I'll have to start chopping. Thought I'd ask before doing so...
    Bob Worsley
    203-249-2633
    rlworsley at gmail.com

    Do or do not. There is no try. — Yoda

  2. #2
    Join Date
    Feb 2009
    Posts
    1,270

    Default Re: dbGrid dissection

    Hi,

    Tye cCJdbGrid can handle your request/requirement very easy.
    Just use pbVisible.

    Just some encouragement I think the CJ dbgrid can do more and is easier to deal with then the dbGrid. Just a different way of thinking and sorting out / get to know all the options available.

    And with the cj you have not the item problem, because you reference the column object.

    Peter
    Peter H. van Wijk
    X-Sources International B.V.
    X-Organize Consultancy N.V.

  3. #3
    Join Date
    Feb 2009
    Location
    SW Connecticut/NY area
    Posts
    9,181

    Default Re: dbGrid dissection

    Hi Peter,
    Yeah I know about the cjGrids thanks, I converted one of these old dbGrids in this app to a cj but this one is a lot more complicated
    Bob Worsley
    203-249-2633
    rlworsley at gmail.com

    Do or do not. There is no try. — Yoda

  4. #4
    Join Date
    Feb 2009
    Posts
    1,270

    Default Re: dbGrid dissection

    Bob,

    I converted a lot of complex grids and always was able to get it fairly easy going. And in fact better working then in a dbGrid and more simple. So maybe just convert it.

    Peter
    Peter H. van Wijk
    X-Sources International B.V.
    X-Organize Consultancy N.V.

  5. #5
    Join Date
    Feb 2009
    Location
    SW Connecticut/NY area
    Posts
    9,181

    Default Re: dbGrid dissection

    I'll give it some (more) consideration
    Bob Worsley
    203-249-2633
    rlworsley at gmail.com

    Do or do not. There is no try. — Yoda

  6. #6
    Join Date
    Feb 2009
    Location
    Peoria, IL
    Posts
    5,491

    Default Re: dbGrid dissection

    Bob with just a bit of refactoring use a ENUM_LIST and name the columns. I've done this with difficult dbGrids to make changes easier and the code friendlier.
    Chuck Atkinson

    "No matter how confounding the case, Bob Worsley always finds the quaesitum."

  7. #7
    Join Date
    Feb 2009
    Location
    SW Connecticut/NY area
    Posts
    9,181

    Default Re: dbGrid dissection

    Hi Chuck,
    Probably a good idea. The grid object itself contains 1450 lines of code, tough to keep track of it all. I sometimes wonder how the original programmer did...
    Bob Worsley
    203-249-2633
    rlworsley at gmail.com

    Do or do not. There is no try. — Yoda

  8. #8
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    5,445

    Default Re: dbGrid dissection

    1450!?!? Just for the grid.

    Oh boy. Good luck
    Samuel Pizarro

  9. #9
    Join Date
    Feb 2009
    Location
    SW Connecticut/NY area
    Posts
    9,181

    Default Re: dbGrid dissection

    I said it was complicated! I questioned what they wanted done because it didn't make any business sense to me and they are rethinking their decision, hopefully I won't have to remove that column.
    Bob Worsley
    203-249-2633
    rlworsley at gmail.com

    Do or do not. There is no try. — Yoda

  10. #10
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: dbGrid dissection

    Bob,

    It is really time to replace the old grids. They are obsolete since DataFlex 16 (10 years back).

    PS: I wonder if they will be updated for DataFlex 2020 64 bit Unicode and without that you would get stuck.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

Page 1 of 3 123 LastLast

Posting Permissions

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