Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Gridview not visible when using a Theme

Reply
Thread Tools

Gridview not visible when using a Theme

 
 
=?Utf-8?B?RWR3YXJk?=
Guest
Posts: n/a
 
      11-19-2005
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?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?RWR3YXJk?=
Guest
Posts: n/a
 
      11-19-2005
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?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input button visible when not visible tshad ASP .Net 1 10-31-2009 10:53 PM
Hide textbox / Make textbox not visible (NOT USING visible property) Jurjen de Groot ASP .Net Web Controls 0 05-19-2008 09:50 AM
How to make a hyperlink Visible or not visible in DataList Patrick Olurotimi Ige ASP .Net 7 06-15-2005 12:01 PM
Sections visible and not visible tshad ASP .Net 4 01-31-2005 09:30 PM
button visible/not visible tshad ASP .Net 6 10-28-2004 10:02 PM



Advertisments