Hi Anoop,

You can extend the datagrid class and then  override the
drawRowBackground method to provide different row colors based on the
conditions.

you can get the complete code on Mike Nimer's blog at

http://www.mikenimer.com/index.cfm/2006/10/3/BackgroundRowColor-DataGrid-component

HTH,

-Ravi

On Mar 2, 5:43 pm, Anoop Max
<[email protected]> wrote:
> Hi All,
>
> I have one doubt in Flex 2 Datagrid.
>
> I want to give different colors to different row based on some
> conditions. I used Item Renderer like this :
>
> <mx:Label opaqueBackgroud="{(data.level=='P') ? '0xCCFFFF' :
> '0xCCFFFF'}"/>
> which worked perfectly. Now the problem is when I mouse over the
> cells, I am able to see the selection colors only on the border of the
> cells. I know that its because am using opaqueBackgroud. Can anyone
> plz sugget some alternate way.
>
> Also, I got another requirement like, putting bottom border for some
> row for some conditions, just like how I put colors for different
> rows. Is this achievable with labels?
>
> Please Help,
>
> Happy Coding,
>
> Thanks,
> Anoop
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to