Title: Re: [flexcoders] Adding rows to a datagrid programmatically
Thanks Ted.
I have created an Array of Objects which I assign to the dataProvider property of my DataGrid. If I have manually added Columns with names and headerTexts, do the Obj properties have to match ColumnNames
Title: Re: [flexcoders] Adding rows to a datagrid programmatically
Ralf,
The DataGrid maps column data to a
dataProvider via the columnName property. You can also employ
cellRenderers and labelFunctions to render MovieClips/components and alternate
text into the Datagrid from
Title: Re: [flexcoders] Adding rows to a datagrid programmatically
Correction:
myDP = new flow.DataProvider()
myDatagrid.dataProvider = myDT
myDP.addItem( { name:Ted, age:33 } )
myDP.addItem( { name:Fred, age:20 } )
myDP.addItem( { name:Jean, age:25 } )
// set the filter
I looked for tutorials on the labs site but could not find
any. Can somebody send a code example of how to add a row to a datagrid programmatically?
Best regards
Ralf
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search
ge -
From: Ralf
Rottmann
To: flexcoders@yahoogroups.com
Sent: Sunday, December 04, 2005 5:29 PM
Subject: [flexcoders] Adding rows to a datagrid
programmatically
I looked for tutorials on the labs
site but could not find any. Can somebody send a code example of how to add a
row to a da
05, 2005
12:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adding rows
to a datagrid programmatically
I looked for tutorials on the labs site but could not find
any. Can somebody send a code example of how to add a row to a datagrid
programmatically?
Best regards
Ralf
6 matches
Mail list logo