RE: Data grid pageing with EnableViewState = False turned on

From: Tampa .NET Koder (TampaNETKoder_at_discussions.microsoft.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 13:20:03 -0700

I think you have to rebind the datagrid after each PageIndexChanged event is fired

datagrid1.databind()

"Brian Henry" wrote:

> Hi,
>
> I want EnableViewState = false turned on to optimize the end output page (it
> was over 600KB with it on) but when i turn it off, our pageing functionality
> no longer works mainly the
> PageIndexChanged event no longer fires, how do you handle this with enable
> view state as false? thanks!
>
>
>



Relevant Pages

  • Re: Data grid pageing with EnableViewState = False turned on
    ... >stil lthe Page Index Change event never fires when the currentpageindex is ... >>> I want EnableViewState = false turned on to optimize the end output page ... >>> PageIndexChanged event no longer fires, how do you handle this with ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Data grid pageing with EnableViewState = False turned on
    ... > I think you have to rebind the datagrid after each PageIndexChanged event ... >> PageIndexChanged event no longer fires, how do you handle this with ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: DataGris Paging not working (event not firing)
    ... > PageIndexChanged event doesn't ever fire. ... > to the next datagrid page, ... and double click the event to load it into the code. ... which calls the DataSource Refresh method and then ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: DataGris Paging not working (event not firing)
    ... PageIndexChanged event doesn't ever fire. ... to the next datagrid page, ... and double click the event to load it into the code. ... >> When the program first starts, its creates an instance of the DataSource ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • RE: DataGrid doesnt fire PageIndexChanged
    ... i try what you said and it still doens't fire PageIndexChanged on the second ... i've an ASP.NET app that uses a datagrid control to show a database table. ... the first time i load my web page and change my page index to page 2 it all ... firing the proper PageIndexChanged event and rebind the datagrid ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)