Re: Data grid current page number?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Brian Henry (brianiupmsdn_at_newsgroups.nospam)
Date: 07/15/04


Date: Thu, 15 Jul 2004 14:08:21 -0400

yes that helps, but also sends me back a 1MB HTML file *LOL* not good for
internet connections...

"John Saunders" <johnwsaundersiii@notcoldmail.com> wrote in message
news:uCYTeWpaEHA.2520@TK2MSFTNGP12.phx.gbl...
> "Brian Henry" <brianiupmsdn@newsgroups.nospam> wrote in message
> news:uhpncLpaEHA.1840@TK2MSFTNGP11.phx.gbl...
> > Hi, I have a data grid that has the following properties
> >
> > EnableViewState = false
> > AllowPaging = true
> > AllowSorting = true
> > AllowCustomPaging = false
> >
> > now, when the page switches I want to get the current page number and
> > display it in a label on the form... but it doesnt seem to return
anything
> > but zero no mater which page i am on in CurrentPageIndex property of the
> > grid how do you get the current page number? thanks
>
> Try leaving ViewState turned on and see if that helps.
> --
> John Saunders
> johnwsaundersiii at hotmail
>
>