473,325 Members | 2,442 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,325 software developers and data experts.

Gridview not visible when using a Theme

On mine ASP 2.0 page I've two gridviews. The second depends on the selected
value of the first one. Everything is working ok. When selecting a row from
the first, the second gridview is displaying information based on the
selected row.

When I apply a theme (in the web.config using <pages theme="Default" />),
the first gridview is shown, but I don't see the second gridview. If I do a
right mouse click and select the source, I see that the content of the
gridview is available.

Part of the .skin-file:
<asp:GridView runat="server" BackColor="#CCCCCC" BorderWidth="1pt"
BorderColor="#CCCCCC" GridLines="None" HorizontalAlign="Left">
<FooterStyle ForeColor="#FFFFFF" BackColor="#AAAAAA"></FooterStyle>
<EditRowStyle BorderWidth="1pt" ForeColor="#000000" BorderStyle="Solid"
BorderColor="#0000FF" BackColor="#FFFFE0"></EditRowStyle>
<HeaderStyle Font-Bold="True" ForeColor="#FFFFFF"
BackColor="#000066"></HeaderStyle>
<AlternatingRowStyle BorderWidth="2pt" ForeColor="#000000"
BorderStyle="Solid" BorderColor="#CCCCCC"
BackColor="#EEEEEE"></AlternatingRowStyle>
<SelectedRowStyle ForeColor="#000000" BorderColor="#0000EE"
BorderWidth="2" BackColor="#FFFFE0"></SelectedRowStyle>
<RowStyle BackColor="#FFFFFF" ForeColor="#000000"></RowStyle>
<PagerStyle BorderWidth="1pt" Font-Bold="True" Font-Size="1.2em"
BorderColor="#0000FF" BorderStyle="Solid" ForeColor="#000000"
BackColor="#AAAAAA"></PagerStyle>
<EmptyDataRowStyle BackColor="#EEEEEE" BorderWidth="2"
ForeColor="#000066"></EmptyDataRowStyle>
</asp:GridView>

Anyone any idea?
Nov 20 '05 #1
1 1801
Found that when removing HorizontalAlign="Left" this situation doesn't appear.
"Edward" wrote:
On mine ASP 2.0 page I've two gridviews. The second depends on the selected
value of the first one. Everything is working ok. When selecting a row from
the first, the second gridview is displaying information based on the
selected row.

When I apply a theme (in the web.config using <pages theme="Default" />),
the first gridview is shown, but I don't see the second gridview. If I do a
right mouse click and select the source, I see that the content of the
gridview is available.

Part of the .skin-file:
<asp:GridView runat="server" BackColor="#CCCCCC" BorderWidth="1pt"
BorderColor="#CCCCCC" GridLines="None" HorizontalAlign="Left">
<FooterStyle ForeColor="#FFFFFF" BackColor="#AAAAAA"></FooterStyle>
<EditRowStyle BorderWidth="1pt" ForeColor="#000000" BorderStyle="Solid"
BorderColor="#0000FF" BackColor="#FFFFE0"></EditRowStyle>
<HeaderStyle Font-Bold="True" ForeColor="#FFFFFF"
BackColor="#000066"></HeaderStyle>
<AlternatingRowStyle BorderWidth="2pt" ForeColor="#000000"
BorderStyle="Solid" BorderColor="#CCCCCC"
BackColor="#EEEEEE"></AlternatingRowStyle>
<SelectedRowStyle ForeColor="#000000" BorderColor="#0000EE"
BorderWidth="2" BackColor="#FFFFE0"></SelectedRowStyle>
<RowStyle BackColor="#FFFFFF" ForeColor="#000000"></RowStyle>
<PagerStyle BorderWidth="1pt" Font-Bold="True" Font-Size="1.2em"
BorderColor="#0000FF" BorderStyle="Solid" ForeColor="#000000"
BackColor="#AAAAAA"></PagerStyle>
<EmptyDataRowStyle BackColor="#EEEEEE" BorderWidth="2"
ForeColor="#000066"></EmptyDataRowStyle>
</asp:GridView>

Anyone any idea?

Nov 20 '05 #2

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

Similar topics

0
by: zerosleep | last post by:
I want to do this (some props removed intentionally): ..skin file: <asp:GridView SkinID="GridThemeA"> <RowStyle CssClass="someClass" /> <AlternatingRowStyle CssClass="someAltClass" />...
1
by: Dick | last post by:
Is it possible to include in a theme, the ItemStyle that belongs to the BoundField of a GridView's column? i.e. the BorderColor property from the control defined below? <asp:GridView...
0
by: den 2005 | last post by:
Hi everybody, I created a Gridview with a TemplateField and there is Label control in ItemTemplate and a DropdownList control in EditItemTemplate, I was to displayed them ok when I click the...
2
by: sck10 | last post by:
Hello, I have a web page that has a GridView and a FormView, each in its own panel. The GridView shows a list of records in a database. When a row in the GridView is selected the FormView...
8
by: gerry | last post by:
The PagerSettings.Visible property is not being handled properly by the GridView control. The value assigned to this property is not applied until after a postback. Simplest test : .aspx...
3
by: =?Utf-8?B?c2hhcnJpczEyMzQ1?= | last post by:
Hi, I have a GridView that has one column that I fill with an alternating "Title Row" then "Details Row". The Title row has a button that I use to hide it's corresponding details row that is...
4
by: Chris | last post by:
I have a nested gridview. I want the nested gridview to be invisible by default but to become visible when a button is clicked in its parent. The code below handles this toggling well when the...
0
by: David Lozzi | last post by:
Howdy, I have a gridview with a linkbutton in a template column (code is below). When the linkbutton is clicked i want to display a little confirm right in the gridview to confirm deleting the...
0
by: =?Utf-8?B?ZWdzZGFy?= | last post by:
Hi, I have created a second gridview when customer clicks on select link with this code: Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.