I am binding a Treeview to an XMLDataSource, The databindings are being generated automaticaly, The XML looks like this:-
<
Passengers>
<Passenger type="normal" ethnic="asian">
<PassengerName>Name1</PassengerName>
</Passenger>
<Passenger type="normal">
<PassengerName>Name2</PassengerName>
</Passenger>
<Passenger>
<PassengerName>Name3</PassengerName>
</Passenger>
</Passengers>
The Treeview displays the XML correctly but when i click on a node and the SelectedNodeChanged event fires the SelectedNode.DataPath is always the path to the first passenger in the list no matter which passenger node i click on.
Does anyone know how to get the datapath of the actual node i click on ?