Groups > Design > Macromedia Dreamweaver MX > Re: Rebinding the dataset to the datagrid after paging




Rebinding the dataset to the datagrid after paging

Rebinding the dataset to the datagrid after paging
Thu, 29 Jun 2006 12:56:42 +000
Hello all,

I am having an issue with a DataGrid (dg) which has NumericPages PagerStyle.  I
am returning 10 records per page and some of those records have images so if
they do i am displaying a camera icon and those that dont i display nothing,
using the MM:if  expression method.

This works fine on the initial page but if i click on the next page on the dg
then it seems to loose the infomration neede to dtermine if there is an image or
not, so it looks like the data it NOT being rebound to the dg.

Does anyone have an idea of what this could be?
Post Reply
Re: Rebinding the dataset to the datagrid after paging
Sat, 1 Jul 2006 05:48:46 +0000
Just off the back of my hand I would say viewstate. While it isn't advisable to
pass the viewstate of a large datagrid around from postback to postback the
reason why it doesn't remember could be because of ViewState not being enabled
on the datagrid. In the datagrid tag put EnableViewState="True" and
see if this helps.

JoeWeb
Post Reply
about | contact