If the logic for when you need strikethrough is data-driven, it will probably 
be worth the work of adding to the renderer.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of gmoniey22
Sent: Tuesday, March 17, 2009 11:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a better way to strikethrough an entire row in a 
grid?


I am looking for a way to strike through an entire row in a grid. Only some 
rows will have the strikethrough effect.

I looked into using item renderers and such, but this seems like more work than 
it needs to be, since I already have several custom item renderers. Which means 
I need to add the strikethrough logic in those, as well as create a generic 
strikethrough item renderer for the other columns. Also, I couldn't 100% 
identify a strikethrough style.

So I started thinking that maybe I should just subclass the DataGrid class and 
override the drawItem function to simply draw a red line over the middle of the 
item after it has been rendered by the super class.

Is there an more obvious solution I am missing?

Thanks

Reply via email to