Run following codes : 1] main. mxml
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ *private* *var* itemRendererFactory:ClassFactory; *private* *function* init():*void*{ itemRendererFactory = *new* ClassFactory(CustCheckBox); DGCObj.itemRenderer = itemRendererFactory; } ]]> </mx:Script> <mx:XMLList id="employees"> <employee> <name>Christina Coenraets</name> <phone>555-219-2270</phone> <email>[email protected]</email> <active>true</active> </employee> <employee> <name>Joanne Wall</name> <phone>555-219-2012</phone> <email>[email protected]</email> <active>true</active> </employee> <employee> <name>Maurice Smith</name> <phone>555-219-2012</phone> <email>[email protected]</email> <active>false</active> </employee> <employee> <name>Mary Jones</name> <phone>555-219-2000</phone> <email>[email protected]</email> <active>true</active> </employee> </mx:XMLList> <mx:DataGrid id="dg" width="100%" height="100%" rowCount="5" dataProvider="{ employees}" creationComplete="init()"> <mx:columns> <mx:DataGridColumn id="DGCObj"/> <mx:DataGridColumn dataField="name" headerText="Name"/> <mx:DataGridColumn dataField="phone" headerText="Phone"/> <mx:DataGridColumn dataField="email" headerText="Email"/> </mx:columns> </mx:DataGrid> </mx:Application> 2] CustCheckBox.mxml <?xml version="1.0" encoding="utf-8"?> <mx:CheckBox xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ ]]> </mx:Script> </mx:CheckBox> On Fri, Aug 27, 2010 at 3:17 PM, Khalid Chaudhary < [email protected]> wrote: > > Use itemRenderer........... on DataGridColumn > > > > On Thu, Aug 26, 2010 at 3:32 PM, kuldeep chauhan < > [email protected]> wrote: > >> Hello >> I m generating data grid in action script 3.0 And I want to >> add check box column in data grid at runtime. >> Plz help me >> >> -- >> 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]<flex_india%[email protected]> >> . >> For more options, visit this group at >> http://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 at http://groups.google.com/group/flex_india?hl=en.

