Sure. Handle the ItemDataBound event to set visual properties or, better,
the css class for the html control representing the row. To locate that
control in the repeater item, set the control id and runat="server" and call
e.Item.FindControl(myRowId).
It comes to something like this:
<ItemTemplate>
<div runat="server" id="myRowId">
...
</div>
</ItemTemplate>

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
> Is there a way to format a row within a repeater based on the data? If I
> have my row (cell 0) text is "Used" I want that entire row to have a blue
> background color. Is it possible to do that in the repeater?
Scott - 11 Feb 2008 15:24 GMT
I've tried that and its not picking up the formatting that I need.
example:
if my lable in the repeater equals, 'Used' the background for that row or
cell isn't changing colors or the font for that label is changing to a bold.
> Sure. Handle the ItemDataBound event to set visual properties or, better,
> the css class for the html control representing the row. To locate that
[quoted text clipped - 11 lines]
>> have my row (cell 0) text is "Used" I want that entire row to have a blue
>> background color. Is it possible to do that in the repeater?
Eliyahu Goldin - 11 Feb 2008 15:31 GMT
This simply means that your code doesn't do what you need. Debug it.

Signature
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
> I've tried that and its not picking up the formatting that I need.
> example:
[quoted text clipped - 17 lines]
>>> have my row (cell 0) text is "Used" I want that entire row to have a
>>> blue background color. Is it possible to do that in the repeater?