When I use ListView in WPF, it always generates one extra column at the end of the ListView. For example, if I define two columns in my list, and when I run it, it generates these two columns plus one empty column heading. Any idea how I can remove this?
ListView XAML Example
<ListView ItemsSource="{Binding Path=SearchAttributes}"
DockPanel.Dock="Top">
<ListView.View>
<GridView x:Name="grdView">
<GridViewColumn Header="Name" DisplayMemberBinding="{Binding SearchFieldName}" />
<GridViewColumn Header="Balance" Width="Auto"
CellTemplateSelector="{StaticResource searchFilterDataTemplateSelector}"
>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
Thanks Jithu
source
share