I am very confused with binding in WPF. For example, binding with a ListView can be done by DisplayMemberBinding but can also be done by using DataTemplate in grid view.
When do I use one approach over the other?
Can someone please suggest how to understand binding?
DataTemplatesallow for complex structures possibly showing various members,DisplayMemberBindingjust displays one member of the object. That’s about it, read about data binding on MSDN. Also see the Data Templating Overview.