Have you tried binding the node list "xnodes" to the datagrid? I don't think I've ever tried to bind data from XML to a datagrid, but I guess that would be my first approach. Try just binding the nodelist.
The other thing that you might want to look into is loading up a DataSet from the XML. Once you have the XML data in a dataset, it won't be any different than dealing with SQL data. It's all the same in the dataset. When you select a category from the dropdownbox, then you can set filter criteria on the dataset table then bind that table to the datagrid. I'm not sure if the dataset automatically has DataRelations for the implicit relationship between the tables that are created from the XML nodes or not. Like I said, I don't work much with XML data so I can't provide much more than ideas.
Peter
------------------------------------------------------
Work smarter, not harder.
|