Skip to main content

Microsoft Silverlight

Answered Question DataGrid Template Column ListBoxRSS Feed

(0)

niqbal
niqbal

Member

Member

2 points

21 Posts

DataGrid Template Column ListBox

I want to iterate the rows of the DataGrid and want to get the selected value of the ListBox.

niqbal
niqbal

Member

Member

2 points

21 Posts

Answered Question

Re: DataGrid Template Column ListBox

I've found the Solution. We will have to create a new property in the class to hold the selectedItem. And Bind the ListBox's SelectedItem='{Binding myProperty, Mode=TwoWay}' . Now upon selecting the value from the dropdown you would be able to get the selected value from this property.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities