From: someone on 15 Dec 2009 14:01 Hi, I have added a PagerTemplate to a gridview, where I can select how many records I want to show per page(20/50/100). I use this to set the gridview pagesize. The fact is that when I have 80 records to show and the gridview pagesize is set to 100, the PagerTemplate dissapear, and I can't set the records per page until I do a new query. Is there a way to set the PagerTemplate always visible?. In advance thanks for any help. Regards, Marcelo.
From: Alexey Smirnov on 15 Dec 2009 16:28 On Dec 15, 8:01 pm, "some...(a)microsoft.com" <some...(a)microsoft.com> wrote: > Hi, > > I have added a PagerTemplate to a gridview, where I can select how many > records I want to show per page(20/50/100). I use this to set the > gridview pagesize. > The fact is that when I have 80 records to show and the gridview > pagesize is set to 100, the PagerTemplate dissapear, and I can't set the > records per page until I do a new query. > > Is there a way to set the PagerTemplate always visible?. > > In advance thanks for any help. > Regards, > Marcelo. Try to set the BottomPagerRow property to true. In addition, take a look at http://www.ryanmcdonnell.com/always-show-the-pagertemplate-in-gridview-control/ Hope this helps
From: someone on 15 Dec 2009 20:14 Thanks a lot, that solved the problem. Regards, "Alexey Smirnov" <alexey.smirnov(a)gmail.com> wrote in message news:f7415e43-b13c-419f-bdcc-3cb6c246af28(a)26g2000yqo.googlegroups.com... On Dec 15, 8:01 pm, "some...(a)microsoft.com" <some...(a)microsoft.com> wrote: > Hi, > > I have added a PagerTemplate to a gridview, where I can select how many > records I want to show per page(20/50/100). I use this to set the > gridview pagesize. > The fact is that when I have 80 records to show and the gridview > pagesize is set to 100, the PagerTemplate dissapear, and I can't set the > records per page until I do a new query. > > Is there a way to set the PagerTemplate always visible?. > > In advance thanks for any help. > Regards, > Marcelo. Try to set the BottomPagerRow property to true. In addition, take a look at http://www.ryanmcdonnell.com/always-show-the-pagertemplate-in-gridview-control/ Hope this helps
From: someone on 16 Dec 2009 09:31 Hi again, I added this method: protected void gridview1_DataBound(object sender, EventArgs e) { gridview1.BottomPagerRow.Visible = true; } Now when the record per pages is set to 100 and the number of record of the query is lower (80 records as an example), now the PagerTemplate appears in the webpage, but if I press the next or previous button the PagerTemplates dissapears. I think I have to set the BottomPagerRow property to true in another method but I don't know wich one. Regards, Marcelo. Alexey Smirnov escribi�: > On Dec 15, 8:01 pm, "some...(a)microsoft.com" <some...(a)microsoft.com> > wrote: >> Hi, >> >> I have added a PagerTemplate to a gridview, where I can select how many >> records I want to show per page(20/50/100). I use this to set the >> gridview pagesize. >> The fact is that when I have 80 records to show and the gridview >> pagesize is set to 100, the PagerTemplate dissapear, and I can't set the >> records per page until I do a new query. >> >> Is there a way to set the PagerTemplate always visible?. >> >> In advance thanks for any help. >> Regards, >> Marcelo. > > Try to set the BottomPagerRow property to true. > In addition, take a look at http://www.ryanmcdonnell.com/always-show-the-pagertemplate-in-gridview-control/ > > Hope this helps
From: Alexey Smirnov on 16 Dec 2009 09:48 On Dec 16, 3:31 pm, "some...(a)microsoft.com" <some...(a)microsoft.com> wrote: > Hi again, > > I added this method: > > protected void gridview1_DataBound(object sender, EventArgs e) > { > gridview1.BottomPagerRow.Visible = true; > } > > Now when the record per pages is set to 100 and the number of record of > the query is lower (80 records as an example), now the PagerTemplate > appears in the webpage, but if I press the next or previous button the > PagerTemplates dissapears. > I think I have to set the BottomPagerRow property to true in another > method but I don't know wich one. > > Regards, > Marcelo. > Alexey Smirnov escribió: > > > > > On Dec 15, 8:01 pm, "some...(a)microsoft.com" <some...(a)microsoft.com> > > wrote: > >> Hi, > > >> I have added a PagerTemplate to a gridview, where I can select how many > >> records I want to show per page(20/50/100). I use this to set the > >> gridview pagesize. > >> The fact is that when I have 80 records to show and the gridview > >> pagesize is set to 100, the PagerTemplate dissapear, and I can't set the > >> records per page until I do a new query. > > >> Is there a way to set the PagerTemplate always visible?. > > >> In advance thanks for any help. > >> Regards, > >> Marcelo. > > > Try to set the BottomPagerRow property to true. > > In addition, take a look athttp://www.ryanmcdonnell.com/always-show-the-pagertemplate-in-gridvie... > > > Hope this helps- Hide quoted text - > > - Show quoted text - Why did you add it into gridview1_DataBound? I think this is the problem. Try Page_Load instead
|
Next
|
Last
Pages: 1 2 3 4 Prev: Character encoding Next: thousands of dollars in cash overflowing your PAYPAL account |