TsDBGrid OnScrollData event not always called

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #37321
    HeDiBo
    Participant

    This is a sequence of screens, in which the OnScrollData event does not occur:

    Starting situation:

    [attachment=8135:ScrollData1.jpg]

    The Insert Record button is clicked:

    [attachment=8136:ScrollData2.jpg]

    The cancel button is clicked:

    [attachment=8137:ScrollData3.jpg]

    This is the culprit: the dataset is repositioned to the first visible line, but the OnScrollData event is not called.

    If you click the “First Record” or the “Last Record” button, the OnScrollData event is not called either a1.gif

    #56139
    HeDiBo
    Participant

    No change in AC 11.25 huh.gif

    #56154
    Support
    Keymaster

    Hello, Dick

    I'm sorry, I have no idea how to catch this event.

    There are no system messages sent and I can't override any procedures like “NewRowAdded” or “RowDeleted”…

    Easiest way will be using of the standard DataSet.OnAfterInsert event, I think.

    #56156
    HeDiBo
    Participant
    'Support' wrote:

    Hello, Dick

    I'm sorry, I have no idea how to catch this event.

    There are no system messages sent and I can't override any procedures like “NewRowAdded” or “RowDeleted”…

    Easiest way will be using of the standard DataSet.OnAfterInsert event, I think.

    I'm not sure what you hoped to accomplish with this added event.

    If I press the “First record” button or the “Last record” button, the event does not fire either. What good is it then?

    Wouldn't it be better to remove this obviously inadequate event all together?

    It would have saved me from testing why things didn't work the way I expected.

    #56158
    Support
    Keymaster

    Sorry, this event has been requested by users some years ago for catching of a grid scrolling by vertical ScrollBar, I can't just remove it.

    If you need to catch all changes of the active record, you can use standard way, I think, by using of DataSet.OnBeforeScroll or OnAfterScroll events..

    #56159
    HeDiBo
    Participant
    'Support' wrote:

    Sorry, this event has been requested by users some years ago for catching of a grid scrolling by vertical ScrollBar, I can't just remove it.

    Could you please document that in the source? wacko.gif

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