--- Rachael Ross <[EMAIL PROTECTED]> wrote: > And in this method, after the DataBind() method call, I loop through the > datagrid items (should be present since I just bound the data to it) and > test one of my viewstate values for a person's guid and if they've been > chosen before, check the checkbox. This doesn't work and it seems as if > the PageIndexChanged event fires when I'm paging forward but not > backwards??????
I recall seeing similar before and traced it down to my misunderstanding of the order of event processing and calls in the page. A couple of trace messages should determine whether you are doing things in the correct order. (Can't guarantee that this is the same problem as you are having). > 2. The second thing I tried was just intercepting the ItemDataBound event > of the datagrid and trying to check the value of the hidden cell > containing the person's guid and comparing it with my maintained data > source of guids that have been selected across postbacks. This would work > great except that even though the datagrid pages display correctly, I'm > getting text contents of " " returned to me in the method?????? Again this could be due to the order of event processing and calls within the page. Peter __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.