*this*.addChild(objDG); here key word "this" means what? its a AdvancedDataGrid itslef. that is the reson i think. you need to add component to some display object
On Thu, Jul 29, 2010 at 8:42 PM, Sidhu Vijay Sidhu <[email protected]>wrote: > * > this is the as class but not displaying the data grid how can i do it... > package > * > > { > > *import* mx.controls.AdvancedDataGrid; > > [ > *Bindable*] > > *public* *class* AdvancedDataGridColors *extends* AdvancedDataGrid > > { > > *public* *var* objDG:AdvancedDataGrid; > > *public* *function* AdvancedDataGridColors() > > { > > *super*(); > > drawDataGrid(); > > } > > *protected* *function* drawDataGrid():*void*{ > > objDG= > *new* AdvancedDataGrid(); > > objDG.setActualSize(300,300); > > objDG.move(300,300); > > *this*.addChild(objDG); > > } > > } > > } > > -- > 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.

