Click here to Skip to main content
15,890,982 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am creating some Custom Paging for my GridView , for that I have used PagerTemplate and inside PagerTemplate I have some Placeholder as Ph1.

In code behind, I am finding the placeholder as:
C#
GridViewRow row = grdview.BottomPagerRow; ph1 = (PlaceHolder)row.FindControl("ph1");
But the value for BottomPagerRow is always getting Null . I have been googled from last 3 hours and will not find any solution . Please help ..


[Edit member="Tadit"]
Corrected formatting and/or grammatical issues.
Added pre tags.
[/Edit]
Posted
v2
Comments
Inside which event you are trying to access the Bottom Pager Row?

1 solution

The BottomPagerRow property is available only after the GridView control creates the bottom pager row in the RowCreated event. Try an event like DataBound, where you can find the controls inside BottomPagerRow

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.bottompagerrow(v=vs.110).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900