[Gambas-user] Gridview_data - when is it finished?

Gianluigi bagonergi at gmail.com
Mon Jan 31 22:42:49 CET 2022

Il giorno lun 31 gen 2022 alle ore 19:10 T Lee Davidson <
t.lee.davidson at gmail.com> ha scritto:

> On 1/31/22 00:58, bb wrote:
> > Is there a way to detect when the gridview_data events have all
> > finished?
> >
> > I have a db query that returns between a few and upto 11,000 rows, so I
> > am loading the grid using the data event handler. After all the visible
> > grid rows are loaded I need to do some summary processing.
> >
> > It would be rediculous to do it after each cell is loaded. But how do I
> > know when it is finished (for the moment)?
> >
> > tia
> > b
> I don't have an answer to your question. But, it seems to me that it would
> not be necessary to know when the Data events have
> finished. Isn't it logical to assume that they would be finished at, or
> close enough to, the time when the loop you use to
> iterate over the dataset is finished?
> If you think that is not a safe assumption, perhaps you could use a Timer
> set to an appropriate value and simply Restart it
> within the Data event.
> Or, do your summary processing on the dataset itself and let the gridview
> fill its data in whatever time it pleases.
> --
> Lee

But I don't understand the question, 11000 tuple for the GridView_Data
event are nothing and elaborates them in a few tenths of a second.

Regards & Good Night
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220131/cacc3005/attachment.htm>

More information about the User mailing list