Thanks a lot Sampath and Rakesh, I can now show hide my rows in the data grid by using filter function. Flex India Community is really Helpfull :)
Regards, Byte_Head On Aug 19, 7:08 pm, "Sampath" <[email protected]> wrote: > Thanks Rakesh, > > Query was raised by Byte_Head and not me > > Regards > Sampath > > From: rakesh amety > Sent: Thursday, August 19, 2010 4:11 PM > To: [email protected] > Subject: Re: [flex_india:31188] How to Hide and the Redisplay a Row in > DataGrid > > Hi Sampath, > > find the below example > > private function bandRBGClickHandler(evt:Event):void { > // call the filter function > bandAryCol.filterFunction = bandFilterFunction; > // refresh the array collection > bandAryCol.refresh(); > > } > > private function bandFilterFunction(obj:Object):Boolean { > // return whether or not the current bandAryCol index meets the filter > criteria > return (obj.band == bandRBG.selectedValue); > > } > > Thanks, > > Rakesh Kumar Amety. > > On Thu, Aug 19, 2010 at 3:55 PM, Sampath Kumar <[email protected]> wrote: > > You have to use a FilterFunction for the ArrayCollection. > > Regards > Sampath > > On Thu, Aug 19, 2010 at 10:12 AM, Byte_Head <[email protected]> wrote: > > Hello All, > > I know to hide and redisplay the row by first deleting it from the > arraycollection and then adding it back. > But is there any other way to attain the same. Also i don't want to > make the row height = 0 and vice versa. > > Please help me to sort out this issue. > > Regrds, > Byte_Head > > -- > 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 > athttp://groups.google.com/group/flex_india?hl=en. > > -- > 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 > athttp://groups.google.com/group/flex_india?hl=en. > > -- > 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 > athttp://groups.google.com/group/flex_india?hl=en. > > Emoticon1.gif > < 1KViewDownload -- 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.

