Board index » Web Programming » Gridview caption style
|
drewstein
|
|
drewstein
|
Gridview caption style
Web Programming8
I am trying to figure out how to change the gridview caption style, but I can not figure out how. I added table caption { background-color: #5D7B9D; color: White; font-size: 16pt; } to my CSS, yet when the page renders, the grids style take precendence, as it becomes an inline style. - |
| S
Registered User |
Tue Nov 08 14:49:24 CST 2005
Re:Gridview caption style
Tim,
Remove the in-line style. And set all the grid's styling with your style sheet. -- Sincerely, S. Justin Gengo, MCP Web Developer / Programmer www.aboutfortunate.com "Out of chaos comes order." Nietzsche "Tim Cartwright" <tim.cartwright@nospam.us-interactive.com>wrote in message QuoteI am trying to figure out how to change the gridview caption style, but I - |
| Tim
Registered User |
Tue Nov 08 15:19:16 CST 2005
Re:Gridview caption style
Hmmmm, what I figured, but not an option that I cared for. IMHO the caption
style should be configurable through the skin OR the css. Looks like a uh-uh, missed that one to me. "S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com>wrote in message news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl... QuoteTim, - |
| S
Registered User |
Tue Nov 08 15:49:31 CST 2005
Re:Gridview caption style
Tim,
Don't rule it out yet. I'm hoping someone else who's used the new 2.0 version chimes in here. I'm not positive that my suggestion is the only way to do this, but it's the only way I know of so far... -- Sincerely, S. Justin Gengo, MCP Web Developer / Programmer www.aboutfortunate.com "Out of chaos comes order." Nietzsche "Tim Cartwright" <tim.cartwright@nospam.us-interactive.com>wrote in message QuoteHmmmm, what I figured, but not an option that I cared for. IMHO the - |
| Tim
Registered User |
Tue Nov 08 16:10:48 CST 2005
Re:Gridview caption style
This is a multi-part message in MIME format.
------=_NextPart_000_0193_01C5E47E.FBBA9B10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Actually, I figured out a compromise. Here is the gridview format in the = skin file : <asp:GridView runat=3D"server" CssClass=3D"tableView" CellPadding=3D"1" = AutoGenerateColumns=3D"False" EmptyDataText=3D"no data"> <FooterStyle BackColor=3D"#5D7B9D" Font-Bold=3D"True" = ForeColor=3D"White" CssClass=3D".tableFooter" /> <RowStyle BackColor=3D"#F7F6F3" ForeColor=3D"#333333" /> <EditRowStyle BackColor=3D"#999999" /> <SelectedRowStyle BackColor=3D"#E2DED6" Font-Bold=3D"True" = ForeColor=3D"#333333" /> <PagerStyle BackColor=3D"#284775" ForeColor=3D"White" = HorizontalAlign=3D"Center" /> <HeaderStyle BackColor=3D"#5D7B9D" Font-Bold=3D"True" = ForeColor=3D"White" /> <AlternatingRowStyle BackColor=3D"White" ForeColor=3D"#284775" /> </asp:GridView> The gridview tag actually only sets the class name. Then in the css : .tableView { color:#333333; border-collapse:separate; white-space:nowrap; } .tableView caption { background-color: #5D7B9D; color: White; font-size: 16pt; font-weight:bold; } "S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com>wrote in = message news:u5LXI5K5FHA.884@TK2MSFTNGP14.phx.gbl... QuoteTim, charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY> <DIV><FONT face=3DArial size=3D2>Actually, I figured out a compromise. = Here is the=20 gridview format in the skin file :</FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff=20 size=3D2></FONT></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff = size=3D2><</FONT><FONT=20 color=3D#800000 size=3D2>asp</FONT><FONT color=3D#0000ff = size=3D2>:</FONT><FONT=20 color=3D#800000 size=3D2>GridView</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>runat</FONT><FONT color=3D#0000ff = size=3D2>=3D"server"</FONT><FONT size=3D2>=20 </FONT><FONT size=3D3><STRONG><FONT color=3D#ff0000>CssClass</FONT><FONT = color=3D#0000ff>=3D"tableView"</FONT></STRONG></FONT><FONT = color=3D#ff0000=20 size=3D2>CellPadding</FONT><FONT color=3D#0000ff = size=3D2>=3D"1"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>AutoGenerateColumns</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"False"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>EmptyDataText</FONT><FONT color=3D#0000ff size=3D2>=3D"no=20 data"><BR></FONT><FONT color=3D#0000ff size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>FooterStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#5D7B9D"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>Font-Bold</FONT><FONT color=3D#0000ff = size=3D2>=3D"True"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>ForeColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"White"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>CssClass</FONT><FONT color=3D#0000ff = size=3D2>=3D".tableFooter"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff size=3D2>/><BR></FONT><FONT = color=3D#0000ff=20 size=3D2> <</FONT><FONT color=3D#800000=20 size=3D2>RowStyle</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>BackColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#F7F6F3"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>ForeColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#333333"</FONT><FONT size=3D2></FONT><FONT color=3D#0000ff = size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>EditRowStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#999999"</FONT><FONT size=3D2></FONT><FONT color=3D#0000ff = size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>SelectedRowStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#E2DED6"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>Font-Bold</FONT><FONT color=3D#0000ff = size=3D2>=3D"True"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>ForeColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#333333"</FONT><FONT size=3D2></FONT><FONT color=3D#0000ff = size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>PagerStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#284775"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>ForeColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"White"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>HorizontalAlign</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"Center"</FONT><FONT size=3D2></FONT><FONT color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>HeaderStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#5D7B9D"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>Font-Bold</FONT><FONT color=3D#0000ff = size=3D2>=3D"True"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>ForeColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"White"</FONT><FONT size=3D2></FONT><FONT color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 = size=3D2>AlternatingRowStyle</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"White"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>ForeColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#284775"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#0000ff size=3D2>/><BR></</FONT><FONT = color=3D#800000=20 size=3D2>asp</FONT><FONT color=3D#0000ff size=3D2>:</FONT><FONT = color=3D#800000=20 size=3D2>GridView</FONT><FONT color=3D#0000ff = size=3D2>></DIV></FONT></FONT> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>The gridview tag actually only sets the = class=20 name. </FONT><FONT face=3DArial size=3D2>Then in the css = :</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT><FONT color=3D#800000=20 size=3D2>.tableView</FONT><FONT size=3D2>{<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> color</FONT><FONT size=3D2>:</FONT><FONT = color=3D#0000ff=20 size=3D2>#333333</FONT><FONT size=3D2>;<BR></FONT><FONT color=3D#ff0000=20 size=3D2> border-collapse</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>separate</FONT><FONT size=3D2>;</FONT></DIV> <DIV><FONT size=3D2><FONT color=3D#ff0000 size=3D2> =20 white-space</FONT><FONT size=3D2>:</FONT><FONT color=3D#0000ff=20 size=3D2>nowrap</FONT><FONT size=3D2>;</FONT></FONT></DIV> <DIV><FONT size=3D2>}</DIV> <DIV></FONT><FONT color=3D#800000 size=3D2> <P>.tableView</FONT><FONT size=3D2></FONT><FONT color=3D#800000=20 size=3D2>caption</FONT><FONT size=3D2>{</FONT><FONT color=3D#ff0000=20 size=3D2><BR> background-color</FONT><FONT size=3D2>: = </FONT><FONT=20 color=3D#0000ff size=3D2>#5D7B9D</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> color</FONT><FONT size=3D2>: </FONT><FONT = color=3D#0000ff=20 size=3D2>White</FONT><FONT size=3D2>;<BR></FONT><FONT color=3D#ff0000=20 size=3D2> font-size</FONT><FONT size=3D2>: = </FONT><FONT=20 color=3D#0000ff size=3D2>16pt</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> font-weight</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>bold</FONT><FONT = size=3D2>;<BR>}</P></FONT></DIV> <DIV><FONT face=3DArial size=3D2>"S. Justin Gengo" <</FONT><A=20 href=3D"mailto:justin@[no_spam_please]aboutfortunate.com"><FONT = face=3DArial=20 size=3D2>justin@[no_spam_please]aboutfortunate.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in message </FONT><A=20 href=3D"news:u5LXI5K5FHA.884@TK2MSFTNGP14.phx.gbl"><FONT face=3DArial=20 size=3D2>news:u5LXI5K5FHA.884@TK2MSFTNGP14.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> Tim,<BR>> = <BR>> Don't=20 rule it out yet. I'm hoping someone else who's used the new 2.0 <BR>> = version=20 chimes in here.<BR>> <BR>> I'm not positive that my suggestion is = the only=20 way to do this, but it's the <BR>> only way I know of so = far...<BR>>=20 <BR>> -- <BR>> Sincerely,<BR>> <BR>> S. Justin Gengo, = MCP<BR>>=20 Web Developer / Programmer<BR>> <BR>> </FONT><A=20 href=3D"www.aboutfortunate.com"><FONT">www.aboutfortunate.com"><FONT face=3DArial=20 size=3D2>www.aboutfortunate.com</FONT></A><BR><FONT face=3DArial = size=3D2>>=20 <BR>> "Out of chaos comes=20 order."<BR>> &nbs= p;  = ; =20 Nietzsche<BR>> "Tim Cartwright" <</FONT><A=20 href=3D"mailto:tim.cartwright@nospam.us-interactive.com"><FONT = face=3DArial=20 size=3D2>tim.cartwright@nospam.us-interactive.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in message <BR>> </FONT><A=20 href=3D"news:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl"><FONT face=3DArial=20 size=3D2>news:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...<BR>>> Hmmmm, what I figured, but not an option that I = cared=20 for. IMHO the <BR>>> caption style should be configurable through = the skin=20 OR the css. Looks <BR>>> like a uh-uh, missed that one to=20 me.<BR>>><BR>>> "S. Justin Gengo" <</FONT><A=20 href=3D"mailto:justin@[no_spam_please]aboutfortunate.com"><FONT = face=3DArial=20 size=3D2>justin@[no_spam_please]aboutfortunate.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in <BR>>> message </FONT><A=20 href=3D"news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl"><FONT face=3DArial=20 size=3D2>news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...<BR>>>> Tim,<BR>>>><BR>>>> Remove = the=20 in-line style. And set all the grid's styling with your style = <BR>>>>=20 sheet.<BR>>>><BR>>>> -- <BR>>>>=20 Sincerely,<BR>>>><BR>>>> S. Justin Gengo, = MCP<BR>>>>=20 Web Developer / Programmer<BR>>>><BR>>>> </FONT><A=20 href=3D"www.aboutfortunate.com"><FONT">www.aboutfortunate.com"><FONT face=3DArial=20 size=3D2>www.aboutfortunate.com</FONT></A><BR><FONT face=3DArial=20 size=3D2>>>><BR>>>> "Out of chaos comes=20 order."<BR>>>> &n= bsp; &nb= sp; =20 Nietzsche<BR>>>> "Tim Cartwright" <</FONT><A=20 href=3D"mailto:tim.cartwright@nospam.us-interactive.com"><FONT = face=3DArial=20 size=3D2>tim.cartwright@nospam.us-interactive.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in <BR>>>> message </FONT><A=20 href=3D"news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl"><FONT face=3DArial=20 size=3D2>news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...<BR>>>>>I am trying to figure out how to change = the=20 gridview caption style, but I <BR>>>>>can not figure out = how. I=20 added<BR>>>>><BR>>>>> table caption=20 {<BR>>>>> background-color:=20 #5D7B9D;<BR>>>>> color:=20 White;<BR>>>>> font-size:=20 16pt;<BR>>>>> }<BR>>>>><BR>>>>> to = my CSS,=20 yet when the page renders, the grids style take precendence,=20 <BR>>>>> as it becomes an inline=20 style.<BR>>>>><BR>>>>><BR>>>>><BR>>= ;>>><BR>>>><BR>>>><BR>>><BR>>>=20 <BR>> <BR>></FONT></BODY></HTML> ------=_NextPart_000_0193_01C5E47E.FBBA9B10-- - |
| S
Registered User |
Tue Nov 08 20:23:04 CST 2005
Re:Gridview caption style
This is a multi-part message in MIME format.
------=_NextPart_000_0015_01C5E4A2.3946E6F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Tim, Very cool. Thanks for letting us know. --=20 Sincerely, S. Justin Gengo, MCP Web Developer / Programmer www.aboutfortunate.com "Out of chaos comes order." Nietzsche "Tim Cartwright" <tim.cartwright@nospam.us-interactive.com>wrote in = message news:%23LbU2FL5FHA.1464@tk2msftngp13.phx.gbl... Actually, I figured out a compromise. Here is the gridview format in = the skin file : <asp:GridView runat=3D"server" CssClass=3D"tableView" = CellPadding=3D"1" AutoGenerateColumns=3D"False" EmptyDataText=3D"no = data"> <FooterStyle BackColor=3D"#5D7B9D" Font-Bold=3D"True" = ForeColor=3D"White" CssClass=3D".tableFooter" /> <RowStyle BackColor=3D"#F7F6F3" ForeColor=3D"#333333" /> <EditRowStyle BackColor=3D"#999999" /> <SelectedRowStyle BackColor=3D"#E2DED6" Font-Bold=3D"True" = ForeColor=3D"#333333" /> <PagerStyle BackColor=3D"#284775" ForeColor=3D"White" = HorizontalAlign=3D"Center" /> <HeaderStyle BackColor=3D"#5D7B9D" Font-Bold=3D"True" = ForeColor=3D"White" /> <AlternatingRowStyle BackColor=3D"White" ForeColor=3D"#284775" /> </asp:GridView> The gridview tag actually only sets the class name. Then in the css : .tableView { color:#333333; border-collapse:separate; white-space:nowrap; } .tableView caption { background-color: #5D7B9D; color: White; font-size: 16pt; font-weight:bold; } "S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com>wrote in = message news:u5LXI5K5FHA.884@TK2MSFTNGP14.phx.gbl... QuoteTim, Quoteversion chimes in here. Quoteonly way I know of so far... Quotenews:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl... Quote>caption style should be configurable through the skin OR the css. = Quote>like a uh-uh, missed that one to me. Quote>message news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl... Quote>>sheet. Quote>>message news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl... Quote>>>can not figure out how. I added Quote>>>as it becomes an inline style. charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Tim,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Very cool. Thanks for letting us = know.</FONT></DIV> <DIV><BR>-- <BR>Sincerely,</DIV> <DIV> </DIV> <DIV>S. Justin Gengo, MCP<BR>Web Developer / Programmer</DIV> <DIV> </DIV> <DIV><A = href=3D"www.aboutfortunate.com">www.aboutfortunate.com</A></DIV>">www.aboutfortunate.com">www.aboutfortunate.com</A></DIV> <DIV> </DIV> <DIV>"Out of chaos comes=20 order."<BR> &n= bsp; &nb= sp; =20 Nietzsche</DIV> <BLOCKQUOTE=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV>"Tim Cartwright" <<A=20 = href=3D"mailto:tim.cartwright@nospam.us-interactive.com">tim.cartwright@n= ospam.us-interactive.com</A>>=20 wrote in message <A=20 = href=3D"news:%23LbU2FL5FHA.1464@tk2msftngp13.phx.gbl">news:%23LbU2FL5FHA.= 1464@tk2msftngp13.phx.gbl</A>...</DIV> <DIV><FONT face=3DArial size=3D2>Actually, I figured out a compromise. = Here is the=20 gridview format in the skin file :</FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff=20 size=3D2></FONT></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff = size=3D2><</FONT><FONT=20 color=3D#800000 size=3D2>asp</FONT><FONT color=3D#0000ff = size=3D2>:</FONT><FONT=20 color=3D#800000 size=3D2>GridView</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>runat</FONT><FONT color=3D#0000ff = size=3D2>=3D"server"</FONT><FONT size=3D2>=20 </FONT><FONT size=3D3><STRONG><FONT = color=3D#ff0000>CssClass</FONT><FONT=20 color=3D#0000ff>=3D"tableView"</FONT></STRONG></FONT><FONT = color=3D#ff0000=20 size=3D2>CellPadding</FONT><FONT color=3D#0000ff = size=3D2>=3D"1"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>AutoGenerateColumns</FONT><FONT=20 color=3D#0000ff size=3D2>=3D"False"</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>EmptyDataText</FONT><FONT color=3D#0000ff size=3D2>=3D"no=20 data"><BR></FONT><FONT color=3D#0000ff size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>FooterStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#5D7B9D"</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>Font-Bold</FONT><FONT color=3D#0000ff = size=3D2>=3D"True"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>ForeColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"White"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>CssClass</FONT><FONT color=3D#0000ff = size=3D2>=3D".tableFooter"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff size=3D2>/><BR></FONT><FONT = color=3D#0000ff=20 size=3D2> <</FONT><FONT color=3D#800000=20 size=3D2>RowStyle</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>BackColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#F7F6F3"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#ff0000 size=3D2>ForeColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#333333"</FONT><FONT size=3D2></FONT><FONT = color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>EditRowStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#999999"</FONT><FONT size=3D2></FONT><FONT = color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>SelectedRowStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#E2DED6"</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>Font-Bold</FONT><FONT color=3D#0000ff = size=3D2>=3D"True"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>ForeColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#333333"</FONT><FONT size=3D2></FONT><FONT = color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>PagerStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#284775"</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>ForeColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"White"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>HorizontalAlign</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"Center"</FONT><FONT size=3D2></FONT><FONT = color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>HeaderStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#5D7B9D"</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>Font-Bold</FONT><FONT color=3D#0000ff = size=3D2>=3D"True"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>ForeColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"White"</FONT><FONT size=3D2></FONT><FONT color=3D#0000ff = size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 = size=3D2>AlternatingRowStyle</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"White"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>ForeColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#284775"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff = size=3D2>/><BR></</FONT><FONT=20 color=3D#800000 size=3D2>asp</FONT><FONT color=3D#0000ff = size=3D2>:</FONT><FONT=20 color=3D#800000 size=3D2>GridView</FONT><FONT color=3D#0000ff=20 size=3D2>></DIV></FONT></FONT> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>The gridview tag actually only sets = the class=20 name. </FONT><FONT face=3DArial size=3D2>Then in the css = :</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT><FONT color=3D#800000=20 size=3D2>.tableView</FONT><FONT size=3D2>{<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> color</FONT><FONT size=3D2>:</FONT><FONT = color=3D#0000ff=20 size=3D2>#333333</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> border-collapse</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>separate</FONT><FONT size=3D2>;</FONT></DIV> <DIV><FONT size=3D2><FONT color=3D#ff0000 size=3D2> =20 white-space</FONT><FONT size=3D2>:</FONT><FONT color=3D#0000ff=20 size=3D2>nowrap</FONT><FONT size=3D2>;</FONT></FONT></DIV> <DIV><FONT size=3D2>}</DIV> <DIV></FONT><FONT color=3D#800000 size=3D2> <P>.tableView</FONT><FONT size=3D2></FONT><FONT color=3D#800000=20 size=3D2>caption</FONT><FONT size=3D2>{</FONT><FONT color=3D#ff0000=20 size=3D2><BR> background-color</FONT><FONT = size=3D2>:=20 </FONT><FONT color=3D#0000ff size=3D2>#5D7B9D</FONT><FONT = size=3D2>;<BR></FONT><FONT=20 color=3D#ff0000 size=3D2> color</FONT><FONT = size=3D2>:=20 </FONT><FONT color=3D#0000ff size=3D2>White</FONT><FONT = size=3D2>;<BR></FONT><FONT=20 color=3D#ff0000 size=3D2> font-size</FONT><FONT = size=3D2>:=20 </FONT><FONT color=3D#0000ff size=3D2>16pt</FONT><FONT = size=3D2>;<BR></FONT><FONT=20 color=3D#ff0000 size=3D2> font-weight</FONT><FONT=20 size=3D2>:</FONT><FONT color=3D#0000ff size=3D2>bold</FONT><FONT=20 size=3D2>;<BR>}</P></FONT></DIV> <DIV><FONT face=3DArial size=3D2>"S. Justin Gengo" <</FONT><A=20 href=3D"mailto:justin@[no_spam_please]aboutfortunate.com"><FONT = face=3DArial=20 size=3D2>justin@[no_spam_please]aboutfortunate.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in message </FONT><A=20 href=3D"news:u5LXI5K5FHA.884@TK2MSFTNGP14.phx.gbl"><FONT face=3DArial=20 size=3D2>news:u5LXI5K5FHA.884@TK2MSFTNGP14.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> Tim,<BR>> = <BR>>=20 Don't rule it out yet. I'm hoping someone else who's used the new 2.0 = <BR>>=20 version chimes in here.<BR>> <BR>> I'm not positive that my = suggestion=20 is the only way to do this, but it's the <BR>> only way I know of = so=20 far...<BR>> <BR>> -- <BR>> Sincerely,<BR>> <BR>> S. = Justin=20 Gengo, MCP<BR>> Web Developer / Programmer<BR>> <BR>> = </FONT><A=20 href=3D"www.aboutfortunate.com"><FONT">www.aboutfortunate.com"><FONT face=3DArial=20 size=3D2>www.aboutfortunate.com</FONT></A><BR><FONT face=3DArial = size=3D2>>=20 <BR>> "Out of chaos comes=20 = order."<BR>> &nbs= p;  = ; =20 Nietzsche<BR>> "Tim Cartwright" <</FONT><A=20 href=3D"mailto:tim.cartwright@nospam.us-interactive.com"><FONT = face=3DArial=20 size=3D2>tim.cartwright@nospam.us-interactive.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in message <BR>> </FONT><A=20 href=3D"news:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl"><FONT face=3DArial = size=3D2>news:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...<BR>>> Hmmmm, what I figured, but not an option that = I cared=20 for. IMHO the <BR>>> caption style should be configurable = through the=20 skin OR the css. Looks <BR>>> like a uh-uh, missed that one to=20 me.<BR>>><BR>>> "S. Justin Gengo" <</FONT><A=20 href=3D"mailto:justin@[no_spam_please]aboutfortunate.com"><FONT = face=3DArial=20 size=3D2>justin@[no_spam_please]aboutfortunate.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in <BR>>> message </FONT><A=20 href=3D"news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl"><FONT face=3DArial = size=3D2>news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...<BR>>>> Tim,<BR>>>><BR>>>> = Remove the=20 in-line style. And set all the grid's styling with your style = <BR>>>>=20 sheet.<BR>>>><BR>>>> -- <BR>>>>=20 Sincerely,<BR>>>><BR>>>> S. Justin Gengo,=20 MCP<BR>>>> Web Developer / = Programmer<BR>>>><BR>>>>=20 </FONT><A href=3D"www.aboutfortunate.com"><FONT">www.aboutfortunate.com"><FONT face=3DArial=20 size=3D2>www.aboutfortunate.com</FONT></A><BR><FONT face=3DArial=20 size=3D2>>>><BR>>>> "Out of chaos comes=20 = order."<BR>>>> &n= bsp; &nb= sp; =20 Nietzsche<BR>>>> "Tim Cartwright" <</FONT><A=20 href=3D"mailto:tim.cartwright@nospam.us-interactive.com"><FONT = face=3DArial=20 size=3D2>tim.cartwright@nospam.us-interactive.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in <BR>>>> message </FONT><A=20 href=3D"news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl"><FONT face=3DArial = size=3D2>news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...<BR>>>>>I am trying to figure out how to = change the=20 gridview caption style, but I <BR>>>>>can not figure out = how. I=20 added<BR>>>>><BR>>>>> table caption=20 {<BR>>>>> background-color:=20 #5D7B9D;<BR>>>>> color:=20 White;<BR>>>>> font-size:=20 16pt;<BR>>>>> }<BR>>>>><BR>>>>> to = my CSS,=20 yet when the page renders, the grids style take precendence,=20 <BR>>>>> as it becomes an inline=20 = style.<BR>>>>><BR>>>>><BR>>>>><BR>>= ;>>><BR>>>><BR>>>><BR>>><BR>>>=20 <BR>> <BR>></FONT></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_0015_01C5E4A2.3946E6F0-- - |
| Tim
Registered User |
Wed Nov 09 10:03:03 CST 2005
Re:Gridview caption style
This is a multi-part message in MIME format.
------=_NextPart_000_00C2_01C5E514.C637A7D0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Actually, I converted all of the styles to css classes because of the = fact that the styles generated from the skin become inline styles in the = grid output, really bloating the size of the grid html output.Thus I = would only control the class name from the skin file. Here is my changes = : SKIN FILE: <asp:GridView runat=3D"server" CssClass=3D"tableView" GridLines=3D"None" = AutoGenerateColumns=3D"False" EmptyDataText=3D"no data"> <HeaderStyle CssClass=3D"tableViewHeader" /> <FooterStyle CssClass=3D"tableViewFooter" /> <RowStyle CssClass=3D"tableViewRow" /> <EditRowStyle CssClass=3D"tableViewEditRow" /> <SelectedRowStyle CssClass=3D"tableViewSelectedRow" /> <PagerStyle CssClass=3D"tableViewPager" /> <AlternatingRowStyle CssClass=3D"tableViewAlternatingRow" /> </asp:GridView> CSS: .tableView { color:#333333; border-collapse:collapse; white-space:nowrap; } .tableView caption { background-color: #5D7B9D; color: White; font-size: 16pt; font-weight:bold; } .tableView td{ padding-right: 3px; white-space:nowrap; } .tableViewHeader, .tableViewFooter{ background-color:#5D7B9D; color:White; font-weight:bold; } .tableViewRow{ background-color:#F7F6F3; color:#333333; } .tableViewEditRow{ background-color:#999999; } .tableViewSelectedRow{ background-color:#E2DED6; font-weight:bold; color:#333333; } .tableViewPager{ background-color:#284775; color:White; text-align:center; } .tableViewAlternatingRow{ background-color:White; color:#284775; } "S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com>wrote in = message news:eKcE$RN5FHA.1464@tk2msftngp13.phx.gbl... Tim, Very cool. Thanks for letting us know. --=20 Sincerely, S. Justin Gengo, MCP Web Developer / Programmer www.aboutfortunate.com "Out of chaos comes order." Nietzsche "Tim Cartwright" <tim.cartwright@nospam.us-interactive.com>wrote in = message news:%23LbU2FL5FHA.1464@tk2msftngp13.phx.gbl... Actually, I figured out a compromise. Here is the gridview format in = the skin file : <asp:GridView runat=3D"server" CssClass=3D"tableView" = CellPadding=3D"1" AutoGenerateColumns=3D"False" EmptyDataText=3D"no = data"> <FooterStyle BackColor=3D"#5D7B9D" Font-Bold=3D"True" = ForeColor=3D"White" CssClass=3D".tableFooter" /> <RowStyle BackColor=3D"#F7F6F3" ForeColor=3D"#333333" /> <EditRowStyle BackColor=3D"#999999" /> <SelectedRowStyle BackColor=3D"#E2DED6" Font-Bold=3D"True" = ForeColor=3D"#333333" /> <PagerStyle BackColor=3D"#284775" ForeColor=3D"White" = HorizontalAlign=3D"Center" /> <HeaderStyle BackColor=3D"#5D7B9D" Font-Bold=3D"True" = ForeColor=3D"White" /> <AlternatingRowStyle BackColor=3D"White" ForeColor=3D"#284775" = /> </asp:GridView> The gridview tag actually only sets the class name. Then in the css = : .tableView { color:#333333; border-collapse:separate; white-space:nowrap; } .tableView caption { background-color: #5D7B9D; color: White; font-size: 16pt; font-weight:bold; } "S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com>wrote = in message news:u5LXI5K5FHA.884@TK2MSFTNGP14.phx.gbl... QuoteTim, Quoteversion chimes in here. Quoteonly way I know of so far... Quotenews:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl... Quote>caption style should be configurable through the skin OR the css. = Quote>like a uh-uh, missed that one to me. Quote>message news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl... Quote>>sheet. Quote>>message news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl... Quote>>>can not figure out how. I added Quote>>>as it becomes an inline style. charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2900.2769" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Actually, I converted all of the styles = to css=20 classes because of the fact that the styles generated from the skin = become=20 inline styles in the grid output, <STRONG>really</STRONG>bloating = the size=20 of the grid html output.Thus I would only control the class name from = the skin=20 file. Here is my changes :</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>SKIN FILE:</FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff size=3D2> <P><</FONT><FONT color=3D#800000 size=3D2>asp</FONT><FONT = color=3D#0000ff=20 size=3D2>:</FONT><FONT color=3D#800000 size=3D2>GridView</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>runat</FONT><FONT color=3D#0000ff=20 size=3D2>=3D"server"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>CssClass</FONT><FONT color=3D#0000ff = size=3D2>=3D"tableView"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#ff0000 size=3D2>GridLines</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"None"</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>AutoGenerateColumns</FONT><FONT color=3D#0000ff = size=3D2>=3D"False"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>EmptyDataText</FONT><FONT=20 color=3D#0000ff size=3D2>=3D"no data"><BR></FONT><FONT = color=3D#0000ff=20 size=3D2> <</FONT><FONT color=3D#800000=20 size=3D2>HeaderStyle</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>CssClass</FONT><FONT color=3D#0000ff = size=3D2>=3D"tableViewHeader"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff size=3D2>/><BR></FONT><FONT = color=3D#0000ff=20 size=3D2> <</FONT><FONT color=3D#800000=20 size=3D2>FooterStyle</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>CssClass</FONT><FONT color=3D#0000ff = size=3D2>=3D"tableViewFooter"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff size=3D2>/><BR></FONT><FONT = color=3D#0000ff=20 size=3D2> <</FONT><FONT color=3D#800000=20 size=3D2>RowStyle</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000=20 size=3D2>CssClass</FONT><FONT color=3D#0000ff = size=3D2>=3D"tableViewRow"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff size=3D2>/><BR></FONT><FONT = color=3D#0000ff=20 size=3D2> <</FONT><FONT color=3D#800000=20 size=3D2>EditRowStyle</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>CssClass</FONT><FONT color=3D#0000ff = size=3D2>=3D"tableViewEditRow"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff size=3D2>/><BR></FONT><FONT = color=3D#0000ff=20 size=3D2> <</FONT><FONT color=3D#800000=20 size=3D2>SelectedRowStyle</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>CssClass</FONT><FONT color=3D#0000ff=20 size=3D2>=3D"tableViewSelectedRow"</FONT><FONT size=3D2></FONT><FONT = color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>PagerStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>CssClass</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"tableViewPager"</FONT><FONT size=3D2></FONT><FONT = color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 = size=3D2>AlternatingRowStyle</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>CssClass</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"tableViewAlternatingRow"</FONT><FONT size=3D2></FONT><FONT = color=3D#0000ff=20 size=3D2>/><BR></</FONT><FONT color=3D#800000 = size=3D2>asp</FONT><FONT=20 color=3D#0000ff size=3D2>:</FONT><FONT color=3D#800000 = size=3D2>GridView</FONT><FONT=20 color=3D#0000ff size=3D2>></P></FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2>CSS:<BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT color=3D#800000 = size=3D2>.tableView</FONT><FONT=20 size=3D2>{<BR></FONT><FONT color=3D#ff0000 size=3D2> =20 color</FONT><FONT size=3D2>:</FONT><FONT color=3D#0000ff = size=3D2>#333333</FONT><FONT=20 size=3D2>;<BR></FONT><FONT color=3D#ff0000 size=3D2> =20 border-collapse</FONT><FONT size=3D2>:</FONT><FONT color=3D#0000ff=20 size=3D2>collapse</FONT><FONT size=3D2>;<BR></FONT><FONT color=3D#ff0000 = size=3D2> white-space</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>nowrap</FONT><FONT = size=3D2>;<BR>}<BR></FONT><FONT=20 color=3D#800000 size=3D2>.tableView</FONT><FONT size=3D2></FONT><FONT = color=3D#800000=20 size=3D2>caption</FONT><FONT size=3D2>{<BR></FONT><FONT color=3D#ff0000 = size=3D2> background-color</FONT><FONT size=3D2>: = </FONT><FONT=20 color=3D#0000ff size=3D2>#5D7B9D</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> color</FONT><FONT size=3D2>: </FONT><FONT = color=3D#0000ff=20 size=3D2>White</FONT><FONT size=3D2>;<BR></FONT><FONT color=3D#ff0000=20 size=3D2> font-size</FONT><FONT size=3D2>: = </FONT><FONT=20 color=3D#0000ff size=3D2>16pt</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> font-weight</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>bold</FONT><FONT = size=3D2>;<BR>}<BR></FONT><FONT=20 color=3D#800000 size=3D2>.tableView</FONT><FONT size=3D2></FONT><FONT = color=3D#800000=20 size=3D2>td</FONT><FONT size=3D2>{<BR></FONT><FONT color=3D#ff0000=20 size=3D2> padding-right</FONT><FONT size=3D2>: = </FONT><FONT=20 color=3D#0000ff size=3D2>3px</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> white-space</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>nowrap</FONT><FONT = size=3D2>;<BR>}<BR></FONT><FONT=20 color=3D#800000 size=3D2>.tableViewHeader</FONT><FONT size=3D2>, = </FONT><FONT=20 color=3D#800000 size=3D2>.tableViewFooter</FONT><FONT = size=3D2>{<BR></FONT><FONT=20 color=3D#ff0000 size=3D2> background-color</FONT><FONT = size=3D2>:</FONT><FONT color=3D#0000ff size=3D2>#5D7B9D</FONT><FONT=20 size=3D2>;<BR></FONT><FONT color=3D#ff0000 size=3D2> =20 color</FONT><FONT size=3D2>:</FONT><FONT color=3D#0000ff = size=3D2>White</FONT><FONT=20 size=3D2>;<BR></FONT><FONT color=3D#ff0000 size=3D2> =20 font-weight</FONT><FONT size=3D2>:</FONT><FONT color=3D#0000ff=20 size=3D2>bold</FONT><FONT size=3D2>;<BR>}<BR></FONT><FONT = color=3D#800000=20 size=3D2>.tableViewRow</FONT><FONT size=3D2>{<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> background-color</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>#F7F6F3</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> color</FONT><FONT size=3D2>:</FONT><FONT = color=3D#0000ff=20 size=3D2>#333333</FONT><FONT size=3D2>;<BR>}<BR></FONT><FONT = color=3D#800000=20 size=3D2>.tableViewEditRow</FONT><FONT size=3D2>{<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> background-color</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>#999999</FONT><FONT = size=3D2>;<BR>}<BR></FONT><FONT=20 color=3D#800000 size=3D2>.tableViewSelectedRow</FONT><FONT = size=3D2>{<BR></FONT><FONT=20 color=3D#ff0000 size=3D2> background-color</FONT><FONT = size=3D2>:</FONT><FONT color=3D#0000ff size=3D2>#E2DED6</FONT><FONT=20 size=3D2>;<BR></FONT><FONT color=3D#ff0000 size=3D2> =20 font-weight</FONT><FONT size=3D2>:</FONT><FONT color=3D#0000ff=20 size=3D2>bold</FONT><FONT size=3D2>;<BR></FONT><FONT color=3D#ff0000=20 size=3D2> color</FONT><FONT size=3D2>:</FONT><FONT = color=3D#0000ff=20 size=3D2>#333333</FONT><FONT size=3D2>;<BR>}<BR></FONT><FONT = color=3D#800000=20 size=3D2>.tableViewPager</FONT><FONT size=3D2>{<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> background-color</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>#284775</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> color</FONT><FONT size=3D2>:</FONT><FONT = color=3D#0000ff=20 size=3D2>White</FONT><FONT size=3D2>;<BR></FONT><FONT color=3D#ff0000=20 size=3D2> text-align</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>center</FONT><FONT = size=3D2>;<BR>}<BR></FONT><FONT=20 color=3D#800000 size=3D2>.tableViewAlternatingRow</FONT><FONT=20 size=3D2>{<BR></FONT><FONT color=3D#ff0000 size=3D2> =20 background-color</FONT><FONT size=3D2>:</FONT><FONT color=3D#0000ff=20 size=3D2>White</FONT><FONT size=3D2>;<BR></FONT><FONT color=3D#ff0000=20 size=3D2> color</FONT><FONT size=3D2>:</FONT><FONT = color=3D#0000ff=20 size=3D2>#284775</FONT><FONT size=3D2>;<BR>}</DIV></FONT></FONT> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV>"S. Justin Gengo" <<A=20 = href=3D"mailto:justin@[no_spam_please]aboutfortunate.com">justin@[no_spam= _please]aboutfortunate.com</A>>=20 wrote in message <A=20 = href=3D"news:eKcE$RN5FHA.1464@tk2msftngp13.phx.gbl">news:eKcE$RN5FHA.1464= @tk2msftngp13.phx.gbl</A>...</DIV> <DIV><FONT face=3DArial size=3D2>Tim,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Very cool. Thanks for letting us=20 know.</FONT></DIV> <DIV><BR>-- <BR>Sincerely,</DIV> <DIV> </DIV> <DIV>S. Justin Gengo, MCP<BR>Web Developer / Programmer</DIV> <DIV> </DIV> <DIV><A = href=3D"www.aboutfortunate.com">www.aboutfortunate.com</A></DIV>">www.aboutfortunate.com">www.aboutfortunate.com</A></DIV> <DIV> </DIV> <DIV>"Out of chaos comes=20 = order."<BR> &n= bsp; &nb= sp; =20 Nietzsche</DIV> <BLOCKQUOTE=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV>"Tim Cartwright" <<A=20 = href=3D"mailto:tim.cartwright@nospam.us-interactive.com">tim.cartwright@n= ospam.us-interactive.com</A>>=20 wrote in message <A=20 = href=3D"news:%23LbU2FL5FHA.1464@tk2msftngp13.phx.gbl">news:%23LbU2FL5FHA.= 1464@tk2msftngp13.phx.gbl</A>...</DIV> <DIV><FONT face=3DArial size=3D2>Actually, I figured out a = compromise. Here is=20 the gridview format in the skin file :</FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff=20 size=3D2></FONT></FONT> </DIV> <DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff = size=3D2><</FONT><FONT=20 color=3D#800000 size=3D2>asp</FONT><FONT color=3D#0000ff = size=3D2>:</FONT><FONT=20 color=3D#800000 size=3D2>GridView</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>runat</FONT><FONT color=3D#0000ff = size=3D2>=3D"server"</FONT><FONT size=3D2>=20 </FONT><FONT size=3D3><STRONG><FONT = color=3D#ff0000>CssClass</FONT><FONT=20 color=3D#0000ff>=3D"tableView"</FONT></STRONG></FONT><FONT = color=3D#ff0000=20 size=3D2>CellPadding</FONT><FONT color=3D#0000ff = size=3D2>=3D"1"</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#ff0000 = size=3D2>AutoGenerateColumns</FONT><FONT=20 color=3D#0000ff size=3D2>=3D"False"</FONT><FONT size=3D2>= </FONT><FONT color=3D#ff0000=20 size=3D2>EmptyDataText</FONT><FONT color=3D#0000ff size=3D2>=3D"no=20 data"><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>FooterStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#5D7B9D"</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>Font-Bold</FONT><FONT color=3D#0000ff = size=3D2>=3D"True"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>ForeColor</FONT><FONT=20 color=3D#0000ff size=3D2>=3D"White"</FONT><FONT size=3D2>= </FONT><FONT color=3D#ff0000=20 size=3D2>CssClass</FONT><FONT color=3D#0000ff = size=3D2>=3D".tableFooter"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff = size=3D2>/><BR></FONT><FONT=20 color=3D#0000ff size=3D2> <</FONT><FONT = color=3D#800000=20 size=3D2>RowStyle</FONT><FONT size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>BackColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#F7F6F3"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>ForeColor</FONT><FONT=20 color=3D#0000ff size=3D2>=3D"#333333"</FONT><FONT size=3D2>= </FONT><FONT=20 color=3D#0000ff size=3D2>/><BR></FONT><FONT color=3D#0000ff=20 size=3D2> <</FONT><FONT color=3D#800000=20 size=3D2>EditRowStyle</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>BackColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#999999"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff = size=3D2>/><BR></FONT><FONT=20 color=3D#0000ff size=3D2> <</FONT><FONT = color=3D#800000=20 size=3D2>SelectedRowStyle</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>BackColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#E2DED6"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>Font-Bold</FONT><FONT=20 color=3D#0000ff size=3D2>=3D"True"</FONT><FONT size=3D2>= </FONT><FONT color=3D#ff0000=20 size=3D2>ForeColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#333333"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff = size=3D2>/><BR></FONT><FONT=20 color=3D#0000ff size=3D2> <</FONT><FONT = color=3D#800000=20 size=3D2>PagerStyle</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>BackColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#284775"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>ForeColor</FONT><FONT=20 color=3D#0000ff size=3D2>=3D"White"</FONT><FONT size=3D2>= </FONT><FONT color=3D#ff0000=20 size=3D2>HorizontalAlign</FONT><FONT color=3D#0000ff=20 size=3D2>=3D"Center"</FONT><FONT size=3D2></FONT><FONT = color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 size=3D2>HeaderStyle</FONT><FONT = size=3D2>=20 </FONT><FONT color=3D#ff0000 size=3D2>BackColor</FONT><FONT = color=3D#0000ff=20 size=3D2>=3D"#5D7B9D"</FONT><FONT size=3D2></FONT><FONT = color=3D#ff0000=20 size=3D2>Font-Bold</FONT><FONT color=3D#0000ff = size=3D2>=3D"True"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>ForeColor</FONT><FONT=20 color=3D#0000ff size=3D2>=3D"White"</FONT><FONT size=3D2>= </FONT><FONT color=3D#0000ff=20 size=3D2>/><BR></FONT><FONT color=3D#0000ff = size=3D2> =20 <</FONT><FONT color=3D#800000 = size=3D2>AlternatingRowStyle</FONT><FONT=20 size=3D2></FONT><FONT color=3D#ff0000 = size=3D2>BackColor</FONT><FONT=20 color=3D#0000ff size=3D2>=3D"White"</FONT><FONT size=3D2>= </FONT><FONT color=3D#ff0000=20 size=3D2>ForeColor</FONT><FONT color=3D#0000ff = size=3D2>=3D"#284775"</FONT><FONT=20 size=3D2></FONT><FONT color=3D#0000ff = size=3D2>/><BR></</FONT><FONT=20 color=3D#800000 size=3D2>asp</FONT><FONT color=3D#0000ff = size=3D2>:</FONT><FONT=20 color=3D#800000 size=3D2>GridView</FONT><FONT color=3D#0000ff=20 size=3D2>></DIV></FONT></FONT> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>The gridview tag actually only sets = the class=20 name. </FONT><FONT face=3DArial size=3D2>Then in the css = :</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT><FONT color=3D#800000=20 size=3D2>.tableView</FONT><FONT size=3D2>{<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> color</FONT><FONT size=3D2>:</FONT><FONT = color=3D#0000ff size=3D2>#333333</FONT><FONT = size=3D2>;<BR></FONT><FONT=20 color=3D#ff0000 size=3D2> = border-collapse</FONT><FONT=20 size=3D2>:</FONT><FONT color=3D#0000ff size=3D2>separate</FONT><FONT = size=3D2>;</FONT></DIV> <DIV><FONT size=3D2><FONT color=3D#ff0000 = size=3D2> =20 white-space</FONT><FONT size=3D2>:</FONT><FONT color=3D#0000ff=20 size=3D2>nowrap</FONT><FONT size=3D2>;</FONT></FONT></DIV> <DIV><FONT size=3D2>}</DIV> <DIV></FONT><FONT color=3D#800000 size=3D2> <P>.tableView</FONT><FONT size=3D2></FONT><FONT color=3D#800000=20 size=3D2>caption</FONT><FONT size=3D2>{</FONT><FONT color=3D#ff0000 = size=3D2><BR> background-color</FONT><FONT = size=3D2>:=20 </FONT><FONT color=3D#0000ff size=3D2>#5D7B9D</FONT><FONT=20 size=3D2>;<BR></FONT><FONT color=3D#ff0000 = size=3D2> =20 color</FONT><FONT size=3D2>: </FONT><FONT color=3D#0000ff=20 size=3D2>White</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> font-size</FONT><FONT size=3D2>: = </FONT><FONT=20 color=3D#0000ff size=3D2>16pt</FONT><FONT size=3D2>;<BR></FONT><FONT = color=3D#ff0000=20 size=3D2> font-weight</FONT><FONT = size=3D2>:</FONT><FONT=20 color=3D#0000ff size=3D2>bold</FONT><FONT = size=3D2>;<BR>}</P></FONT></DIV> <DIV><FONT face=3DArial size=3D2>"S. Justin Gengo" <</FONT><A=20 href=3D"mailto:justin@[no_spam_please]aboutfortunate.com"><FONT = face=3DArial=20 size=3D2>justin@[no_spam_please]aboutfortunate.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in message </FONT><A=20 href=3D"news:u5LXI5K5FHA.884@TK2MSFTNGP14.phx.gbl"><FONT = face=3DArial=20 size=3D2>news:u5LXI5K5FHA.884@TK2MSFTNGP14.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> = Tim,<BR>> <BR>>=20 Don't rule it out yet. I'm hoping someone else who's used the new = 2.0=20 <BR>> version chimes in here.<BR>> <BR>> I'm not positive = that my=20 suggestion is the only way to do this, but it's the <BR>> only = way I know=20 of so far...<BR>> <BR>> -- <BR>> Sincerely,<BR>> = <BR>> S.=20 Justin Gengo, MCP<BR>> Web Developer / Programmer<BR>> = <BR>>=20 </FONT><A href=3D"www.aboutfortunate.com"><FONT">www.aboutfortunate.com"><FONT face=3DArial=20 size=3D2>www.aboutfortunate.com</FONT></A><BR><FONT face=3DArial = size=3D2>>=20 <BR>> "Out of chaos comes=20 = order."<BR>> &nbs= p;  = ; =20 Nietzsche<BR>> "Tim Cartwright" <</FONT><A=20 href=3D"mailto:tim.cartwright@nospam.us-interactive.com"><FONT = face=3DArial=20 size=3D2>tim.cartwright@nospam.us-interactive.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in message <BR>> </FONT><A=20 href=3D"news:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl"><FONT = face=3DArial=20 size=3D2>news:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...<BR>>> Hmmmm, what I figured, but not an option = that I cared=20 for. IMHO the <BR>>> caption style should be configurable = through the=20 skin OR the css. Looks <BR>>> like a uh-uh, missed that one to = me.<BR>>><BR>>> "S. Justin Gengo" <</FONT><A=20 href=3D"mailto:justin@[no_spam_please]aboutfortunate.com"><FONT = face=3DArial=20 size=3D2>justin@[no_spam_please]aboutfortunate.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in <BR>>> message </FONT><A=20 href=3D"news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl"><FONT = face=3DArial=20 size=3D2>news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...<BR>>>> Tim,<BR>>>><BR>>>> = Remove the=20 in-line style. And set all the grid's styling with your style=20 <BR>>>> sheet.<BR>>>><BR>>>> -- = <BR>>>>=20 Sincerely,<BR>>>><BR>>>> S. Justin Gengo,=20 MCP<BR>>>> Web Developer /=20 Programmer<BR>>>><BR>>>> </FONT><A=20 href=3D"www.aboutfortunate.com"><FONT">www.aboutfortunate.com"><FONT face=3DArial=20 size=3D2>www.aboutfortunate.com</FONT></A><BR><FONT face=3DArial=20 size=3D2>>>><BR>>>> "Out of chaos comes=20 = order."<BR>>>> &n= bsp; &nb= sp; =20 Nietzsche<BR>>>> "Tim Cartwright" <</FONT><A=20 href=3D"mailto:tim.cartwright@nospam.us-interactive.com"><FONT = face=3DArial=20 size=3D2>tim.cartwright@nospam.us-interactive.com</FONT></A><FONT = face=3DArial=20 size=3D2>> wrote in <BR>>>> message </FONT><A=20 href=3D"news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl"><FONT = face=3DArial=20 size=3D2>news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl</FONT></A><FONT = face=3DArial=20 size=3D2>...<BR>>>>>I am trying to figure out how to = change the=20 gridview caption style, but I <BR>>>>>can not figure out = how. I=20 added<BR>>>>><BR>>>>> table caption=20 {<BR>>>>> background-color:=20 #5D7B9D;<BR>>>>> color:=20 White;<BR>>>>> font-size:=20 16pt;<BR>>>>> }<BR>>>>><BR>>>>> = to my=20 CSS, yet when the page renders, the grids style take = precendence,=20 <BR>>>>> as it becomes an inline=20 = style.<BR>>>>><BR>>>>><BR>>>>><BR>>= ;>>><BR>>>><BR>>>><BR>>><BR>>>=20 <BR>> <BR>></FONT></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML> ------=_NextPart_000_00C2_01C5E514.C637A7D0-- - |
