TIWDBAdvWebGrid1 go to page


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

Thaks so much and best regards.


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

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.


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.

Take a look at the exe file, please.

Thank you and best regards.