Click here to Skip to main content
15,889,865 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have two controls in two différents Windows (formularys)
In the first Window i have a ListView. In the second window i have a ListBox.
I want to know it is possible to recover just one column of ListView (window1) and fill the ListBox (window2) with the content of the column.
Thanks you

Note: i'm working with WPF, Not with Windows forms.
Posted
Comments
Naz_Firdouse 30-Jul-13 6:15am    
do you want to move one column data from lsitview to listbox using drag and drop?

1 solution

It is definately possible. My initial idea would be to create a behaviour associated with the ListView control, and pass the ListBox control to it. The behaviour would then subscribe to appropriate events of the ListView, and also set the DataContext of the ItemsSource of the ListBox control. Any changes to the selected cell in the ListView would update the property of the ItemsSource, firing the NotifyPropertyChanged.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900