473,396 Members | 2,092 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,396 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 4047
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...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.