# Combobox and datagrid: how to alternate the XML data? (simple data view question)

**URL:** <https://forum.kirupa.com/t/combobox-and-datagrid-how-to-alternate-the-xml-data-simple-data-view-question/156446>\
**Category:** Uncategorized\
**Created:** [July 25, 2005, 9:44pm UTC](https://forum.kirupa.com/t/combobox-and-datagrid-how-to-alternate-the-xml-data-simple-data-view-question/156446 "2005-07-25T21:44:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tapic](https://avatars.discourse-cdn.com/v4/letter/t/f17d59/32.png) [@tapic](https://forum.kirupa.com/u/tapic)\
**Post date:** [July 25, 2005, 9:44pm UTC](https://forum.kirupa.com/t/combobox-and-datagrid-how-to-alternate-the-xml-data-simple-data-view-question/156446/1 "2005-07-25T21:44:52Z")

</div>

hi everyone

I have a combobox, a dataset, a datagrid, and a xmlconnector on the stage.

my xml structure is as follows:

\<xml\>  
\<node1 name=""\>

\<node2 name="" address="" phone=""/\>  
\<node2 name="" address="" phone=""/\>  
\<node2 name="" address="" phone=""/\>  
.  
.  
.  
\</node1\>  
\<node1 name=""\>  
.  
.  
.  
\</xml\>

my combobox gets its values from node1s. it works OK.

I want to show the 3 columns (node2s) in my datagrid for each selected node1.(selected in combobox)

How can I build a button or a binding to force the datagrid which gets its values from my dataset to show the 3 columns (name,address,phone) for the selected node1? (selected in combobox)

thanks a lot…
