1 Reply Latest reply on Feb 19, 2008 6:48 PM by peterent

    Assigning data to grid

    transpacificflex

      Hi,

      How to assign dataprovider in a datagrid with a record selected from xml.

      We have one xml with set of records . we need to bind the grid as per the id selected from XML.
      right now If we asign xml to the data provider then complete data is displayed. we want data filtered as per ID.

      please help.

      Thanks in advance
        • 1. Re: Assigning data to grid
          peterent Level 2
          Make sure your XML is actually an XMLListCollection. If you use XMLListCollection then you can assign to it a filterFunction. In your filterFunction you can determine if something should be shown or not. Only things which cause your filterFunction to return true will be shown in the DataGrid.