Hi chandu

can you please full datagrid creation because i am not able to under
stand

where you create datagrid and how to pass data to columns

please help

Karthik.k
Mobile - +91-9894991640
http://kkarthikresume.blogspot.com/

On May 6, 12:43 pm, chandu <flexcha...@gmail.com> wrote:
> i have donedynamiccolumns, where the dataField and Headertext of the
> columns comes from Dataprovider
> here is the sample code:
>
> for(var i:int=0; i<myAC.length;i++) {
>         addColumn(myAC[i].xxx,myAC[i].yyy);
>
> }
>
> private function addColumn(headerText:String,dataField:String):void {
>         var dgc:DataGridColumn = new DataGridColumn();
>         dgc.headerText = headerText;
>        dgc.dataField = dataField;
>        var cols:Array = dg.columns;
>        cols.push(dgc);
>        dg.columns = cols;
>       dg.invalidateDisplayList();
>
>  }
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to