Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to determine DB fetch time from record

    Hi there,

    Let's assume I have a ListGrid, with some records loaded from the DB.
    Is there a built-in way to tell the time when the records were fetched from the DB?
    (Like an automatic timestamp hidden somewhere in the records, or the time of the last fetch stored in the ListGrid, or something like that.)

    Thank you for your help:

    Csillag

    #2
    How about a dataArrived handler on your grid which stores a timestamp each time it runs?

    Comment


      #3
      The problem is that since the user might move around the grid, he might load some records later than the others. In this case, I would like to have a newer timestamp for the newer records.

      This could work if I could mark the individual records in the dataArrived handler, but I don't receive a reference to the newly arrived records in this event handler. How can I tell which records were loaded in the event handler?

      Thank you for your help:

      Csillag

      Comment


        #4
        DataArrivedEvent gives you the indices of the records that have just arrived.

        Comment


          #5
          I have not noticed that. Thank you.

          Csillag

          Comment

          Working...
          X