DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 17 Aug 2007 14:31:22 -0700,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    tshad
          2    bruce barker


Css and DataGrid   
I am having a problem getting my Grid links to work correctly.

I have the following DataGrid:

   <anthem:DataGrid AllowPaging="true"
          AllowCustomPaging="false"
          PageSize="10"
          PagerStyle-Visible="false"
          Visible=false
          AllowSorting="True"
          AutoGenerateColumns="false"
          CellPadding="0"
          CellSpacing="0"
          ID="DataGrid1"
          runat="server"
          ShowFooter="false"
          ShowHeader="true"
          OnSortCommand="SortDataGrid"
          BorderWidth="0"
          Width="835px">
      <headerstyle HorizontalAlign="center" CssClass="gridHeaderStyle" />
      <alternatingitemstyle CssClass="alternateRows" />
      <pagerstyle CssClass="gridPagerStyle" />
          <columns>
           <asp:BoundColumn DataField="Applied"
             ItemStyle-Width="15px"
             HeaderStyle-Width="15px"
             ReadOnly="true"
             Visible="True"
              ItemStyle-VerticalAlign="Top">
            <itemstyle ForeColor="red" />
           </asp:BoundColumn>
           <asp:BoundColumn DataField="Rank"
             HeaderText="Rank"
             ReadOnly="true"
             Visible="false"
             ItemStyle-VerticalAlign="Top"
             SortExpression="Rank">
           </asp:BoundColumn>
          </columns>
          </anthem:DataGrid>

I have the following CSS:

a:link, a:visited {
  color:#CCFF33;               - lime Green (just for testing)
}
..gridHeaderStyle {
 color:#33FFCC;
 background-color:#000000;
 font-weight:bold
}
..gridHeaderStyle a:link, .gridHeaderStyle a:visited {
 color:#red;
}
a.gridHeaderStyle:link, a.gridHeaderStyle:visited {
 color:#red;
}
..gridPagerStyle {
 background-color:red
}


No matter what I do - the links in the header that are for sorting are 
showing as lime green.  I am trying to get them to change to red.

The links in my site should be Lime Green (a:link and a:visited).  I have 
the headerstyles' CssClass set to gridHeaderStyle - but it doesn't seem to 
be working for the links in the header.

Am I missing something here?

Thanks,

Tom
Date:Fri, 17 Aug 2007 14:31:22 -0700   Author:  

Re: Css and DataGrid   
don't use #red, just red. the # means its an rgb entry

-- bruce (sqlwork.com)

tshad wrote:

> I am having a problem getting my Grid links to work correctly.
> 
> I have the following DataGrid:
> 
>    <anthem:DataGrid AllowPaging="true"
>           AllowCustomPaging="false"
>           PageSize="10"
>           PagerStyle-Visible="false"
>           Visible=false
>           AllowSorting="True"
>           AutoGenerateColumns="false"
>           CellPadding="0"
>           CellSpacing="0"
>           ID="DataGrid1"
>           runat="server"
>           ShowFooter="false"
>           ShowHeader="true"
>           OnSortCommand="SortDataGrid"
>           BorderWidth="0"
>           Width="835px">
>       <headerstyle HorizontalAlign="center" CssClass="gridHeaderStyle" />
>       <alternatingitemstyle CssClass="alternateRows" />
>       <pagerstyle CssClass="gridPagerStyle" />
>           <columns>
>            <asp:BoundColumn DataField="Applied"
>              ItemStyle-Width="15px"
>              HeaderStyle-Width="15px"
>              ReadOnly="true"
>              Visible="True"
>               ItemStyle-VerticalAlign="Top">
>             <itemstyle ForeColor="red" />
>            </asp:BoundColumn>
>            <asp:BoundColumn DataField="Rank"
>              HeaderText="Rank"
>              ReadOnly="true"
>              Visible="false"
>              ItemStyle-VerticalAlign="Top"
>              SortExpression="Rank">
>            </asp:BoundColumn>
>           </columns>
>           </anthem:DataGrid>
> 
> I have the following CSS:
> 
> a:link, a:visited {
>   color:#CCFF33;               - lime Green (just for testing)
> }
> .gridHeaderStyle {
>  color:#33FFCC;
>  background-color:#000000;
>  font-weight:bold
> }
> .gridHeaderStyle a:link, .gridHeaderStyle a:visited {
>  color:#red;
> }
> a.gridHeaderStyle:link, a.gridHeaderStyle:visited {
>  color:#red;
> }
> .gridPagerStyle {
>  background-color:red
> }
> 
> 
> No matter what I do - the links in the header that are for sorting are 
> showing as lime green.  I am trying to get them to change to red.
> 
> The links in my site should be Lime Green (a:link and a:visited).  I have 
> the headerstyles' CssClass set to gridHeaderStyle - but it doesn't seem to 
> be working for the links in the header.
> 
> Am I missing something here?
> 
> Thanks,
> 
> Tom
> 
> 
> 
Date:Fri, 17 Aug 2007 15:11:04 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us