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