Thanks a lot buddy.. I think it will work.. am gonna try it out :)

Again, Any help about putting border in the row???

Anoop

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Ravi
Sent: Monday, March 02, 2009 8:36 PM
To: Flex India Community
Subject: [flex_india:19892] Re: Datagrid Doubt


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



DISCLAIMER:
This message contains privileged and confidential information and is intended 
only for an individual named. If you are not the intended recipient, you should 
not disseminate, distribute, store, print, copy or deliver this message. Please 
notify the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The 
sender, therefore,  does not accept liability for any errors or omissions in 
the contents of this message which arise as a result of e-mail transmission. If 
verification is required, please request a hard-copy version.

--~--~---------~--~----~------------~-------~--~----~
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