Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 17, 2012 11:51 AM by oned_gk
Member
46 Points
103 Posts
Nov 17, 2012 10:41 AM|LINK
Hi all:.
I want to paginate a gridview and set its pagesize to 25.
Where is it better to do it? In gridview.databound or page.load event?
Thanks in advance.
Contributor
4242 Points
923 Posts
Nov 17, 2012 11:11 AM|LINK
There is a PageSize property on GridView Control, you can set it in markup. Alternatively, if you need to set it from code-behind, Page_Load is appropriate.
All-Star
35730 Points
7297 Posts
Nov 17, 2012 11:51 AM|LINK
martincapon
Member
46 Points
103 Posts
setting page size
Nov 17, 2012 10:41 AM|LINK
Hi all:.
I want to paginate a gridview and set its pagesize to 25.
Where is it better to do it? In gridview.databound or page.load event?
Thanks in advance.
_Manvel_
Contributor
4242 Points
923 Posts
Re: setting page size
Nov 17, 2012 11:11 AM|LINK
There is a PageSize property on GridView Control, you can set it in markup. Alternatively, if you need to set it from code-behind, Page_Load is appropriate.
oned_gk
All-Star
35730 Points
7297 Posts
Re: setting page size
Nov 17, 2012 11:51 AM|LINK
Suwandi - Non Graduate Programmer