473,382 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Overriding AllowPaging and PageSize set in skin file

I am working on part of an application most of which is being developed
outside of my group. I may actually have two problems here. I have a GridView
for which the columns are generated dynamically from a manager class called
by the code behind for the page containing the GridView. The grid appears to
display properly. The HyperLinkField generated dynamically works just fine.
This application has a default.skin file which sets AllowPaging to true and
PageSize to 20. It seems to apply to any gridview generated within the
application.

My GridView generates with the Paging controls at the bottom of the form.
However, when I click any of the other page numbers, I get a Http Exception
for which I have no information other than that. Is there a way I can handle
this in the code behind?

For what I am doing, I don't really need to AllowPaging so another way to
solve this issue would be to override AllowPaging but if I set AllowPaging =
false in the GridView tag, it has no effect. Is there a way to override this?

Thank you!
Steve
May 5 '06 #1
1 4045
You can create another skin for the GridView you do not want the allowpaging
attribute to be overriden by the previous one and set the SkinID of the
GridView to this new skin. I hope this helps
"Stephen Hatfield" <St*************@discussions.microsoft.com> wrote in
message news:DD**********************************@microsof t.com...
I am working on part of an application most of which is being developed
outside of my group. I may actually have two problems here. I have a
GridView
for which the columns are generated dynamically from a manager class
called
by the code behind for the page containing the GridView. The grid appears
to
display properly. The HyperLinkField generated dynamically works just
fine.
This application has a default.skin file which sets AllowPaging to true
and
PageSize to 20. It seems to apply to any gridview generated within the
application.

My GridView generates with the Paging controls at the bottom of the form.
However, when I click any of the other page numbers, I get a Http
Exception
for which I have no information other than that. Is there a way I can
handle
this in the code behind?

For what I am doing, I don't really need to AllowPaging so another way to
solve this issue would be to override AllowPaging but if I set AllowPaging
=
false in the GridView tag, it has no effect. Is there a way to override
this?

Thank you!
Steve

May 5 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Nuno Monteiro | last post by:
Hello! I'm using a WebControls.DataGrid and I wanna allowpaging to show several pagins with a NextPrev mode selection The Query returns 8 Rows but only shows 1 page with 5 rows, and the page...
8
by: JackO | last post by:
I have a datagrid that I set the PageSize = 10 and AllowPaging = True, however when I display the page in my browser, it shows 10 rows and the paging arrows but does not page when I click the...
0
by: Nuno Monteiro | last post by:
Hello! I'm using a WebControls.DataGrid and I wanna allowpaging to show several pagins with a NextPrev mode selection The Query returns 8 Rows but only shows 1 page with 5 rows, and the page...
1
by: Frédéric Mayot | last post by:
Hi, I'm trying to apply skins to all my controls. I didn't want to specify a skin all the time, so I used a default skin. The problem is that I sometimes would like to override a property...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.