F
fig000
Hi,
I have a datalist and I'm using the following code in the
itemdatabound event to change the color to red on alternating items:
If e.Item.ItemType = ListItemType.AlternatingItem Then
e.Item.BackColor = System.Drawing.Color.Red
End If
I've used this before and it's worked but I must be doing
something odd this time. What I see when the page is rendered is a
little red line below the first item in my itemtemplate which happens
to be an asp image control. All of the elements of the line appear but
there is no red except for this one little line. In addition, rather
than it appearing on the alternating item (2,4,6, etc) it appears on
the odd numbered items (1,3, etc).
Any help would be appreciated.
Neil
I have a datalist and I'm using the following code in the
itemdatabound event to change the color to red on alternating items:
If e.Item.ItemType = ListItemType.AlternatingItem Then
e.Item.BackColor = System.Drawing.Color.Red
End If
I've used this before and it's worked but I must be doing
something odd this time. What I see when the page is rendered is a
little red line below the first item in my itemtemplate which happens
to be an asp image control. All of the elements of the line appear but
there is no red except for this one little line. In addition, rather
than it appearing on the alternating item (2,4,6, etc) it appears on
the odd numbered items (1,3, etc).
Any help would be appreciated.
Neil