Hi Richard,
Welcome.
As for the GridView's BoundField or other Fields classes they're derived
from DataBoundField which is not a control class, also the ASP.NET 2.0's
Them/skin only apply to Server Control class, so we can not apply them on
GridView fiels..... For DataBoundField, we can only use the <ItemStyle> or
any other style properties to customize their appearnce, also the CssClass
property can help specify css style class for them....
Thanks,
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: Theme a GridView's ItemStyle
| thread-index: AcYgdwecwtGmzgQBTeiqVRiw0jDrNg==
| X-WBNR-Posting-Host: 86.137.242.173
| From: "=?Utf-8?B?RGljaw==?=" <
[email protected]>
| Subject: Theme a GridView's ItemStyle
| Date: Mon, 23 Jan 2006 15:45:02 -0800
| Lines: 11
| Message-ID: <
[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:372999
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Is it possible to include in a theme, the ItemStyle that belongs to the
| BoundField of a GridView's column? i.e. the BorderColor property from the
| control defined below?
|
| <asp:GridView ID="GridView1" runat="server">
| <Columns>
| <asp:BoundField DataField="ID" HeaderText="ID">
| <ItemStyle BorderColor="ButtonShadow"/>
| </asp:BoundField>
| </Columns>
| </asp:GridView>
|