TsDBGrid stack overflow

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37630
    Stephane Senecal
    Participant

    I attached a demo project so you can see the problem.

    When I clear all fields from a dataset associated with a TsDBGrid, I get a stack overflow.

    I do not get this error when I use a regular TDBGrid.

    You can add a break point to the function TacColumnTitle.IsCaptionStored to get you started.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57186
    Support
    Keymaster

    Thank you for the demo.

    Try the attached file, please.

    #57189
    Stephane Senecal
    Participant

    Seems to work. thank you!

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57193
    Stephane Senecal
    Participant

    Finally it is not quite correct.

    There's no stack overflow anymore, but the grid still needs to be painted according to the informations coming from the grid's column like the caption.

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

    #57199
    Support
    Keymaster

    Try this patched file, please.

    #57200
    Stephane Senecal
    Participant

    It works

    Stephane Senecal
    CIS Group
    Delphi programmer since 2001

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.