2

How do I add data to the WPF ListView items like Windows Forms?

1
  • 1
    Why don't you bind the items to some collection and add items to that collection. That is more in the spirit of WPF. Commented Feb 24, 2011 at 13:47

1 Answer 1

1

Using databinding you can bind the itemssource to something like an observable collection then have your items added to that.

This approach makes it fairly easy to manipulate the data once you get used to databinding as long as you have INotifyPropertyChanged implemented your listview will update when you call OnPropertyChanged().

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.