I populate an AdvancedDataGrid with XML Data, this is an example of the XML data I use :
<list>
<root>
<item text="Folder" id="1" isBranch="true" classes="folder">
<item text="SubFolder" id="2" isBranch="true" classes="folder">
<item text="Item" id="3" isBranch="false" classes="item" col1="1" col2="2" />
</item>
<item text="Folder" id="4" isBranch="true" classes="folder">
<item text="Item" id="5" isBranch="false" classes="item" col1="3" col2="4"/>
</item>
</item>
</root>
</list>
After the user then clicks on a cell, I would like to retrieve the attributes of the node he clicked on.
So, for example, if the user clicks on column 1 of the Item with ID 3, I need to access the attributes of this XML node :
<item text="Item" id="3" isBranch="false" classes="item" col1="1" col2="2" />
So I can find out the ID of this item (in this case 3).
Note that this ID is never displayed in the AdvancedDataGrid.