Hello All,

I am hanging near a piece of code , want some suggestions :(

I created a data grid using flex2.0 , added columns to it dynamically
by passing the header text as the parameter
to the following function.

        private function addDataGridColumn(dataField:String):void {
                var dgc:DataGridColumn = new DataGridColumn
(dataField);
                var cols:Array =
myGrid.columns;
                 cols.push(dgc);
                myGrid.columns =
cols;
            }


columns are built ; but the problem is i have to populate the data
into these columns .
i have my data in an array : find the code below

for(var i=1 ; i<rec_arr.length;i++)
        {
              recordstring = rec_arr[i].toString().replace(/"/g,"");
             //Alert.show(recordstring +"");
             resultstrarr = recordstring.split("\\011");          /// here are 
my
data

            //Alert.show(resultstrarr.length +"");
           columnData.push(resultstrarr[3]);
        }


i want this data to get displayed in the columns created .....

suggestions please and it is bit urgent.


thanks ...

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