G
Gaz
I have a web form with a datagrid with paging. I keep the datagrid
items in an ArrayList in the session object. My problem is that the
page links (1 2 3 etc) do not appear when they should ie; when the
number of items in the array list (which is bound to the datagrid)
exceeds the datagrid's page size.
And this is why it's strange.. The paging links do appear if I press
F5 a few times on the page and add an item to the ArrayList in the
Page_Load() function to build up the datagrid. But when I setup an
asp:linkbutton to go back to the server the paging links do not appear
when the page size is exceeded. This is strange because the ArrayList
is updated, the datagrid (which represents a shopping basket) knows
about the ArrayList with the extra item/s. The first page of the
datagrid builds up but when the paging links are required, they just
don't show up.
If it makes a difference the datagrid is in a .ascx.
Please help if you can, this is getting on my nerves.
items in an ArrayList in the session object. My problem is that the
page links (1 2 3 etc) do not appear when they should ie; when the
number of items in the array list (which is bound to the datagrid)
exceeds the datagrid's page size.
And this is why it's strange.. The paging links do appear if I press
F5 a few times on the page and add an item to the ArrayList in the
Page_Load() function to build up the datagrid. But when I setup an
asp:linkbutton to go back to the server the paging links do not appear
when the page size is exceeded. This is strange because the ArrayList
is updated, the datagrid (which represents a shopping basket) knows
about the ArrayList with the extra item/s. The first page of the
datagrid builds up but when the paging links are required, they just
don't show up.
If it makes a difference the datagrid is in a .ascx.
Please help if you can, this is getting on my nerves.