Reputation: 603
I am working WPF I display dataContext into the listbox but I want to display Coloumn name. How I can do it..
Upvotes: 0
Views: 854
Reputation: 27499
You need to set the list views view mode to be a grid, and setup columns with headers. Something like this:
<ListView>
<ListView.View>
<GridView>
<GridViewColumn Header="Column name here" DisplayMemberBinding="{Binding Path=DataMemberToBindToColumnGoesHere}"/>
Upvotes: 1