Board index » Web Programming » Gridview caption style

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.


-
 

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

Quote
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.













-

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...

Quote
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 news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl...

>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.

>

>

>

>









-

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

Quote
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...

>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 news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl...

>>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.

>>

>>

>>

>>

>

>









-

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...

Quote
Tim,

=20

Don't rule it out yet. I'm hoping someone else who's used the new 2.0=20

version chimes in here.

=20

I'm not positive that my suggestion is the only way to do this, but =

it's the=20

only way I know of so far...

=20

--=20

Sincerely,

=20

S. Justin Gengo, MCP

Web Developer / Programmer

=20

www.aboutfortunate.com

=20

"Out of chaos comes order."

Nietzsche

"Tim Cartwright" <tim.cartwright@nospam.us-interactive.com>wrote in =

message=20

news:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl...

>Hmmmm, what I figured, but not an option that I cared for. IMHO the=20

>caption style should be configurable through the skin OR the css. =

Looks=20

>like a uh-uh, missed that one to me.

>

>"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com>wrote =

in=20

>message news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl...

>>Tim,

>>

>>Remove the in-line style. And set all the grid's styling with your =

style=20

>>sheet.

>>

>>--=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:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl...

>>>I am trying to figure out how to change the gridview caption style, =

but I=20

>>>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,=20

>>>as it becomes an inline style.

>>>

>>>

>>>

>>>

>>

>>

>

>=20

=20



------=_NextPart_000_0193_01C5E47E.FBBA9B10

Content-Type: text/html;

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>&nbsp;</DIV>

<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff =

size=3D2>&lt;</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"&gt;<BR></FONT><FONT color=3D#0000ff size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT =

color=3D#0000ff=20

size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR>&lt;/</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>&gt;</DIV></FONT></FONT>

<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>

<DIV><FONT face=3DArial size=3D2>The gridview tag actually only sets the =

class=20

name.&nbsp; </FONT><FONT face=3DArial size=3D2>Then in the css =

:</FONT></DIV>

<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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" &lt;</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>&gt; 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>&gt; Tim,<BR>&gt; =

<BR>&gt; Don't=20

rule it out yet. I'm hoping someone else who's used the new 2.0 <BR>&gt; =

version=20

chimes in here.<BR>&gt; <BR>&gt; I'm not positive that my suggestion is =

the only=20

way to do this, but it's the <BR>&gt; only way I know of so =

far...<BR>&gt;=20

<BR>&gt; -- <BR>&gt; Sincerely,<BR>&gt; <BR>&gt; S. Justin Gengo, =

MCP<BR>&gt;=20

Web Developer / Programmer<BR>&gt; <BR>&gt; </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>&gt;=20

<BR>&gt; "Out of chaos comes=20

order."<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=

p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=

;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20

Nietzsche<BR>&gt; "Tim Cartwright" &lt;</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>&gt; wrote in message <BR>&gt; </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>&gt;&gt; Hmmmm, what I figured, but not an option that I =

cared=20

for. IMHO the <BR>&gt;&gt; caption style should be configurable through =

the skin=20

OR the css. Looks <BR>&gt;&gt; like a uh-uh, missed that one to=20

me.<BR>&gt;&gt;<BR>&gt;&gt; "S. Justin Gengo" &lt;</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>&gt; wrote in <BR>&gt;&gt; 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>&gt;&gt;&gt; Tim,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Remove =

the=20

in-line style. And set all the grid's styling with your style =

<BR>&gt;&gt;&gt;=20

sheet.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; -- <BR>&gt;&gt;&gt;=20

Sincerely,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; S. Justin Gengo, =

MCP<BR>&gt;&gt;&gt;=20

Web Developer / Programmer<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; </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>&gt;&gt;&gt;<BR>&gt;&gt;&gt; "Out of chaos comes=20

order."<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=

bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=

sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20

Nietzsche<BR>&gt;&gt;&gt; "Tim Cartwright" &lt;</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>&gt; wrote in <BR>&gt;&gt;&gt; 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>&gt;&gt;&gt;&gt;I am trying to figure out how to change =

the=20

gridview caption style, but I <BR>&gt;&gt;&gt;&gt;can not figure out =

how. I=20

added<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; table caption=20

{<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; background-color:=20

#5D7B9D;<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; color:=20

White;<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; font-size:=20

16pt;<BR>&gt;&gt;&gt;&gt; }<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; to =

my CSS,=20

yet when the page renders,&nbsp; the grids style take precendence,=20

<BR>&gt;&gt;&gt;&gt; as it becomes an inline=20

style.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt=

;&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;=20

<BR>&gt; <BR>&gt;</FONT></BODY></HTML>



------=_NextPart_000_0193_01C5E47E.FBBA9B10--



-

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...

Quote
Tim,

=20

Don't rule it out yet. I'm hoping someone else who's used the new =

2.0=20

Quote
version chimes in here.

=20

I'm not positive that my suggestion is the only way to do this, but =

it's the=20

Quote
only way I know of so far...

=20

--=20

Sincerely,

=20

S. Justin Gengo, MCP

Web Developer / Programmer

=20

www.aboutfortunate.com

=20

"Out of chaos comes order."

Nietzsche

"Tim Cartwright" <tim.cartwright@nospam.us-interactive.com>wrote in =

message=20

Quote
news:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl...

>Hmmmm, what I figured, but not an option that I cared for. IMHO the =



Quote
>caption style should be configurable through the skin OR the css. =

Looks=20

Quote
>like a uh-uh, missed that one to me.

>

>"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com>wrote =

in=20

Quote
>message news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl...

>>Tim,

>>

>>Remove the in-line style. And set all the grid's styling with your =

style=20

Quote
>>sheet.

>>

>>--=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=20

Quote
>>message news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl...

>>>I am trying to figure out how to change the gridview caption =

style, but I=20

Quote
>>>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,=20

Quote
>>>as it becomes an inline style.

>>>

>>>

>>>

>>>

>>

>>

>

>=20

=20



------=_NextPart_000_0015_01C5E4A2.3946E6F0

Content-Type: text/html;

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>&nbsp;</DIV>

<DIV><FONT face=3DArial size=3D2>Very cool. Thanks for letting us =

know.</FONT></DIV>

<DIV><BR>-- <BR>Sincerely,</DIV>

<DIV>&nbsp;</DIV>

<DIV>S. Justin Gengo, MCP<BR>Web Developer / Programmer</DIV>

<DIV>&nbsp;</DIV>

<DIV><A =

href=3D"www.aboutfortunate.com">www.aboutfortunate.com</A></DIV>">www.aboutfortunate.com">www.aboutfortunate.com</A></DIV>

<DIV>&nbsp;</DIV>

<DIV>"Out of chaos comes=20

order."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=

bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=

sp;&nbsp;&nbsp;&nbsp;&nbsp;=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" &lt;<A=20

=

href=3D"mailto:tim.cartwright@nospam.us-interactive.com">tim.cartwright@n=

ospam.us-interactive.com</A>&gt;=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>&nbsp;</DIV>

<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff =

size=3D2>&lt;</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"&gt;<BR></FONT><FONT color=3D#0000ff size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT =

color=3D#0000ff=20

size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR>&lt;/</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>&gt;</DIV></FONT></FONT>

<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>

<DIV><FONT face=3DArial size=3D2>The gridview tag actually only sets =

the class=20

name.&nbsp; </FONT><FONT face=3DArial size=3D2>Then in the css =

:</FONT></DIV>

<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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" &lt;</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>&gt; 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>&gt; Tim,<BR>&gt; =

<BR>&gt;=20

Don't rule it out yet. I'm hoping someone else who's used the new 2.0 =

<BR>&gt;=20

version chimes in here.<BR>&gt; <BR>&gt; I'm not positive that my =

suggestion=20

is the only way to do this, but it's the <BR>&gt; only way I know of =

so=20

far...<BR>&gt; <BR>&gt; -- <BR>&gt; Sincerely,<BR>&gt; <BR>&gt; S. =

Justin=20

Gengo, MCP<BR>&gt; Web Developer / Programmer<BR>&gt; <BR>&gt; =

</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>&gt;=20

<BR>&gt; "Out of chaos comes=20

=

order."<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=

p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=

;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20

Nietzsche<BR>&gt; "Tim Cartwright" &lt;</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>&gt; wrote in message <BR>&gt; </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>&gt;&gt; Hmmmm, what I figured, but not an option that =

I cared=20

for. IMHO the <BR>&gt;&gt; caption style should be configurable =

through the=20

skin OR the css. Looks <BR>&gt;&gt; like a uh-uh, missed that one to=20

me.<BR>&gt;&gt;<BR>&gt;&gt; "S. Justin Gengo" &lt;</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>&gt; wrote in <BR>&gt;&gt; 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>&gt;&gt;&gt; Tim,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; =

Remove the=20

in-line style. And set all the grid's styling with your style =

<BR>&gt;&gt;&gt;=20

sheet.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; -- <BR>&gt;&gt;&gt;=20

Sincerely,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; S. Justin Gengo,=20

MCP<BR>&gt;&gt;&gt; Web Developer / =

Programmer<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;=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>&gt;&gt;&gt;<BR>&gt;&gt;&gt; "Out of chaos comes=20

=

order."<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=

bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=

sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20

Nietzsche<BR>&gt;&gt;&gt; "Tim Cartwright" &lt;</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>&gt; wrote in <BR>&gt;&gt;&gt; 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>&gt;&gt;&gt;&gt;I am trying to figure out how to =

change the=20

gridview caption style, but I <BR>&gt;&gt;&gt;&gt;can not figure out =

how. I=20

added<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; table caption=20

{<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; background-color:=20

#5D7B9D;<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; color:=20

White;<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; font-size:=20

16pt;<BR>&gt;&gt;&gt;&gt; }<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; to =

my CSS,=20

yet when the page renders,&nbsp; the grids style take precendence,=20

<BR>&gt;&gt;&gt;&gt; as it becomes an inline=20

=

style.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt=

;&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;=20

<BR>&gt; <BR>&gt;</FONT></BLOCKQUOTE></BODY></HTML>



------=_NextPart_000_0015_01C5E4A2.3946E6F0--



-

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...

Quote
Tim,

=20

Don't rule it out yet. I'm hoping someone else who's used the new =

2.0=20

Quote
version chimes in here.

=20

I'm not positive that my suggestion is the only way to do this, =

but it's the=20

Quote
only way I know of so far...

=20

--=20

Sincerely,

=20

S. Justin Gengo, MCP

Web Developer / Programmer

=20

www.aboutfortunate.com

=20

"Out of chaos comes order."

Nietzsche

"Tim Cartwright" <tim.cartwright@nospam.us-interactive.com>wrote =

in message=20

Quote
news:OVdeHpK5FHA.1416@TK2MSFTNGP09.phx.gbl...

>Hmmmm, what I figured, but not an option that I cared for. IMHO =

the=20

Quote
>caption style should be configurable through the skin OR the css. =

Looks=20

Quote
>like a uh-uh, missed that one to me.

>

>"S. Justin Gengo" <justin@[no_spam_please]aboutfortunate.com>=

wrote in=20

Quote
>message news:eZasiXK5FHA.1416@TK2MSFTNGP09.phx.gbl...

>>Tim,

>>

>>Remove the in-line style. And set all the grid's styling with =

your style=20

Quote
>>sheet.

>>

>>--=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=20

Quote
>>message news:OA5gbSK5FHA.3592@TK2MSFTNGP12.phx.gbl...

>>>I am trying to figure out how to change the gridview caption =

style, but I=20

Quote
>>>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,=20

Quote
>>>as it becomes an inline style.

>>>

>>>

>>>

>>>

>>

>>

>

>=20

=20



------=_NextPart_000_00C2_01C5E514.C637A7D0

Content-Type: text/html;

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,&nbsp;<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>&nbsp;</DIV>

<DIV><FONT face=3DArial size=3D2>SKIN FILE:</FONT></DIV>

<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff size=3D2>

<P>&lt;</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"&gt;<BR></FONT><FONT =

color=3D#0000ff=20

size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT =

color=3D#0000ff=20

size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT =

color=3D#0000ff=20

size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT =

color=3D#0000ff=20

size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT =

color=3D#0000ff=20

size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR>&lt;/</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>&gt;</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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp; 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" &lt;<A=20

=

href=3D"mailto:justin@[no_spam_please]aboutfortunate.com">justin@[no_spam=

_please]aboutfortunate.com</A>&gt;=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>&nbsp;</DIV>

<DIV><FONT face=3DArial size=3D2>Very cool. Thanks for letting us=20

know.</FONT></DIV>

<DIV><BR>-- <BR>Sincerely,</DIV>

<DIV>&nbsp;</DIV>

<DIV>S. Justin Gengo, MCP<BR>Web Developer / Programmer</DIV>

<DIV>&nbsp;</DIV>

<DIV><A =

href=3D"www.aboutfortunate.com">www.aboutfortunate.com</A></DIV>">www.aboutfortunate.com">www.aboutfortunate.com</A></DIV>

<DIV>&nbsp;</DIV>

<DIV>"Out of chaos comes=20

=

order."<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=

bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=

sp;&nbsp;&nbsp;&nbsp;&nbsp;=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" &lt;<A=20

=

href=3D"mailto:tim.cartwright@nospam.us-interactive.com">tim.cartwright@n=

ospam.us-interactive.com</A>&gt;=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>&nbsp;</DIV>

<DIV><FONT face=3DArial size=3D2><FONT color=3D#0000ff =

size=3D2>&lt;</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"&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT=20

color=3D#0000ff size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff=20

size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT=20

color=3D#0000ff size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT=20

color=3D#0000ff size=3D2>&nbsp;&nbsp;&nbsp; &lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR></FONT><FONT color=3D#0000ff =

size=3D2>&nbsp;&nbsp;&nbsp;=20

&lt;</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>/&gt;<BR>&lt;/</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>&gt;</DIV></FONT></FONT>

<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>

<DIV><FONT face=3DArial size=3D2>The gridview tag actually only sets =

the class=20

name.&nbsp; </FONT><FONT face=3DArial size=3D2>Then in the css =

:</FONT></DIV>

<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; =

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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp;=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>&nbsp;&nbsp;&nbsp; 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>&nbsp;&nbsp;&nbsp; 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" &lt;</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>&gt; 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>&gt; =

Tim,<BR>&gt; <BR>&gt;=20

Don't rule it out yet. I'm hoping someone else who's used the new =

2.0=20

<BR>&gt; version chimes in here.<BR>&gt; <BR>&gt; I'm not positive =

that my=20

suggestion is the only way to do this, but it's the <BR>&gt; only =

way I know=20

of so far...<BR>&gt; <BR>&gt; -- <BR>&gt; Sincerely,<BR>&gt; =

<BR>&gt; S.=20

Justin Gengo, MCP<BR>&gt; Web Developer / Programmer<BR>&gt; =

<BR>&gt;=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>&gt;=20

<BR>&gt; "Out of chaos comes=20

=

order."<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=

p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=

;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20

Nietzsche<BR>&gt; "Tim Cartwright" &lt;</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>&gt; wrote in message <BR>&gt; </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>&gt;&gt; Hmmmm, what I figured, but not an option =

that I cared=20

for. IMHO the <BR>&gt;&gt; caption style should be configurable =

through the=20

skin OR the css. Looks <BR>&gt;&gt; like a uh-uh, missed that one to =



me.<BR>&gt;&gt;<BR>&gt;&gt; "S. Justin Gengo" &lt;</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>&gt; wrote in <BR>&gt;&gt; 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>&gt;&gt;&gt; Tim,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; =

Remove the=20

in-line style. And set all the grid's styling with your style=20

<BR>&gt;&gt;&gt; sheet.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; -- =

<BR>&gt;&gt;&gt;=20

Sincerely,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; S. Justin Gengo,=20

MCP<BR>&gt;&gt;&gt; Web Developer /=20

Programmer<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; </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>&gt;&gt;&gt;<BR>&gt;&gt;&gt; "Out of chaos comes=20

=

order."<BR>&gt;&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=

bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=

sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20

Nietzsche<BR>&gt;&gt;&gt; "Tim Cartwright" &lt;</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>&gt; wrote in <BR>&gt;&gt;&gt; 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>&gt;&gt;&gt;&gt;I am trying to figure out how to =

change the=20

gridview caption style, but I <BR>&gt;&gt;&gt;&gt;can not figure out =

how. I=20

added<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; table caption=20

{<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; background-color:=20

#5D7B9D;<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; color:=20

White;<BR>&gt;&gt;&gt;&gt;&nbsp;&nbsp;&nbsp; font-size:=20

16pt;<BR>&gt;&gt;&gt;&gt; }<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; =

to my=20

CSS, yet when the page renders,&nbsp; the grids style take =

precendence,=20

<BR>&gt;&gt;&gt;&gt; as it becomes an inline=20

=

style.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt=

;&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;=20

<BR>&gt; <BR>&gt;</FONT></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>



------=_NextPart_000_00C2_01C5E514.C637A7D0--



-