Just of the top of my head here, you need to change:
 
<mx:DataGrid id="dataGrid" dataProvider="{fProvider}" />
 
your curly braces are missing for binding
 
Jimmy Gianninas - Developer
Optimal Payments Inc.
 


From: mwelie [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 03, 2005 3:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Working with special dataProviders


Hi,

I am new to Flex and I am trying to work withmy extended dataProvider
class and dataGrids. The following does not work but illustrates what
I intend to do:

      <mx:Model id="recordsXmlData" source="records.xml" />
      <FilteredDataProvider id="fProvider" source="{recordsXmlData.record}" />
      <mx:DataGrid id="dataGrid" dataProvider="fProvider" />

So I want to declare an instance of my own dataProvider class
(FilteredDataProvider) and connect it with the model. Then I want to
tell the DataGrid component touse my FilteredDataProvider instance.

The reason I want to do this is that I want to use the same
FilteredDataProvider for other components that needto work together
with the DataGrid.

So I guess I am not understanding how the data binding stuff
works.....but I'd appreaciate any hints on how todo this properly!!

Best regards,

Martijn van Welie



Reply via email to