Hi,

Herez a sample...

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="vertical">
    <mx:Script>
        <![CDATA[
            import mx.collections.ArrayCollection;
            import mx.utils.ObjectProxy;
            [Bindable] private var comboArr:ArrayCollection = new
ArrayCollection([new ObjectProxy({"checked":true}),new
ObjectProxy({"checked":true}),new ObjectProxy({"checked":false}),new
ObjectProxy({"checked":true}),new ObjectProxy({"checked":false})]);
        ]]>
    </mx:Script>


    <mx:DataGrid dataProvider="{comboArr}">
        <mx:columns>
            <mx:DataGridColumn headerText="Check Box" dataField="checked">
                <mx:itemRenderer>
                    <mx:Component>
                        <mx:Canvas>
                            <mx:CheckBox id="checks"
selected="{data.checked}" change="{data.checked = this.checks.selected}"/>
                        </mx:Canvas>
                    </mx:Component>
                </mx:itemRenderer>
            </mx:DataGridColumn>
            <mx:DataGridColumn headerText="Combo Box" dataField="checked">
                <mx:itemRenderer>
                    <mx:Component>
                        <mx:Canvas>
                            <mx:ComboBox visible="{data.checked}">
                                <mx:dataProvider>
                                    <mx:ArrayCollection>
                                        <mx:source>
                                            <mx:String>Data1</mx:String>
                                            <mx:String>Data2</mx:String>
                                            <mx:String>Data3</mx:String>
                                            <mx:String>Data4</mx:String>
                                            <mx:String>Data5</mx:String>
                                        </mx:source>
                                    </mx:ArrayCollection>
                                </mx:dataProvider>
                            </mx:ComboBox>
                        </mx:Canvas>
                    </mx:Component>
                </mx:itemRenderer>
            </mx:DataGridColumn>
        </mx:columns>
    </mx:DataGrid>
</mx:Application>


Regards,
Venkat
www.venkatv.com

On Tue, Oct 7, 2008 at 5:08 PM, natarajan santosh <[EMAIL PROTECTED]>wrote:

> hi friends
>
> In my DataGrid i have 2 columns
> first column combo box
> second column is check box
>
> But i want when i click check box then only combo box will be visible to me
>
> can u send me the code for that one
>
>
> Regards
> V.Natarajan
>
> >
>

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