Stringgrid Delphi - "carousel"

Asked

Viewed 214 times

0

I would like to do the following with my Stringgrid, I have a register of 100 products, and I would like it to show 10 products at a time, in a kind of infinite loop. Someone knows how to help me?

2 answers

0

Control of fetch is never done in a grid, regardless of the same being Dataware or not.
The control should be done in the dataset. I assume you must be using the Firedac, thus being in FecthOptions, seven the property Mode for fmOnDemand and the property RowsetSize for 10.
Something else at the event AfterGetRecords of DataSet, it may be necessary to increase the RowCount of StringGrid. Depending on how you are feeding the data on StringGrid, may need some more configuration.
If you have any doubts, put it there.

  • I’m using Firemonkey, I don’t know if it interferes with anything

  • In this case it does not interfere with anything. You are using the LiveBindings?

-1

no, just firemonkey even, I want to do something like this :

inserir a descrição da imagem aqui

Image link: https://i.ytimg.com/vi/3RZV5-Yfkwo/maxresdefault.jpg

there it goes alternating the products, I was able to assemble the screen, bring the products straight, but I can not do this alternation 2 in 2 , 5 in 5.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.