2
I would like to know how to display two pages of the same GridView
side by side, if possible keeping the pagination on both pages at the same time. For example, if I have a GridView
in that way:
Num Produto
--------------
1 Banana
2 Abacaxi
3 Morango
4 Castanha
5 Alface
6 Tomate
7 Cebola
8 Pimentão
9 Melão
10 Melancia
Páginas: (1) 2 3
He’d look like this:
Num Produto Num Produto
-------------------------------
1 Banana 6 Tomate
2 Abacaxi 7 Cebola
3 Morango 8 Pimentão
4 Castanha 9 Melão
5 Alface 10 Melancia
Páginas: (1) 2 3
The pagination would update the two parts of the GridView
at the same time, as in the first case. If paging is not possible, display the GridView
whole in two parts already solves the problem.
This is a good alternative. I didn’t know it was possible to use
ItemTemplate
with components other thanGridView
.– diogoan
Yes, it is possible, also with the
Repeater
. See more on: http://msdn.microsoft.com/en-us/library/ms228214.ASPX– Felipe Oriani
The only drawback is that it is not possible to use paging on these components, only in Gridview...
– diogoan
Yes, it is possible with the component
DataPager
.– Felipe Oriani