Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How setup and access underlying ID's in selected Rows in a wpf DataTemplated ListBox?

$
0
0

I've populated a wpf ListBox using a DataTemplate in xaml and a System.Data.DataSet in the vb.net code behind. I've sneeked in a underlying numeric database ID in a DockPanel ToolTip of the DataTemplate. My question: Is there a simple way to reference these ID's in the Click event of the ListBox? I wish to store and act upon multiple selected ID's without hard coding specific Classes or ObservableCollections. In VB6 I would have simply stored the ID's in the ItemData property of a ListBox.


Gouranga Gupta :-)




Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>