TIWDBAdvWebGrid1 go to page

Hello.

How can I change page using code on TIWDBAdvWebGrid?
Can you give me an example?

Thaks so much and best regards.

Hi,

You can programmatically set the page number by using the Page property.

Example:
TIWDBAdvWebGrid1.Page := TIWDBAdvWebGrid1.Page + 1;

Thanks, a lot.

One more question: how can I start the grid in the first page? My grid is starting in the last page.
Can you help me with this, too?

Thanks, again and best regards.

The grid should display the first page by default. If for some reason this is not the case, you can also use the Page property after the data is loaded to display the first page.

Example

TIWDBAdvWebGrid1.Page := 0;

No way.

I'm sending the compiled demo, it starts at the second page.
I'm using Delphi XE8 with Intraweb 14.2.12.
https://drive.google.com/file/d/1jiLk-2aLcb9lGq4gGxuCu7hZGKuMC2Ru/view?usp=sharing

Take a look at the exe file, please.

Thank you and best regards.