Search:
Namespaces
Discussions
.NET v1.1
Feedback
databinded table row color
Messages
Related Types
This message was discovered on
ASPFriends.com 'aspngdatagridrepeaterdatalist' list
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
renevazquez@cimex.com.cu
-- Moved from [aspngfreeforall] to [aspngdatagridrepeaterdatalist] by Yannick Smits <
Click here to reveal e-mail address
> --
-- Moved from [aspngxml] to [aspngfreeforall] by Alex Lowe <
Click here to reveal e-mail address
> --
Hi, anyone have an idea of how can I make taht the rows of a table
databinded to a dso, draw a cell in one color and the next in white,
in order to differentiate two consecutive row.
thanks a lot in advance for any help!!
Reply to this message...
Yannick Smits (VIP)
Asuming you are using a datagrid to bind to you should use the =
alternatingitem template in conjunction with the itemtemplate (both with =
a different color).
Here is an example:
<asp:DataGrid=20
runat=3D"server"
AutoGenerateColumns=3D"True"
CellPadding=3D"3"
CellSpacing=3D"0"
GridLines
=3D"Horizontal"
BackColor=3D"#F0F0F0"
ForeColor=3D"#990000"
>
<HeaderStyle BackColor=3D"#707070"/>
<HeaderStyle ForeColor=3D"#FFFFFF"/>
<AlternatingItemStyle ForeColor=3D"#FFFFFF"/>
<AlternatingItemStyle BackColor=3D"#990000"/>
</asp:DataGrid>
hth,
Yannick Smits
----- Original Message -----
From:
Click here to reveal e-mail address
To:
Click here to reveal e-mail address
Sent: Thu, 01 Aug 2002 19:15:36 -0400
Subject: databinded table row color
[Original message clipped]
Reply to this message...
System.Web.UI.WebControls.DataGrid
System.Web.UI.WebControls.GridLines
System.Windows.Forms.DataGrid
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com