tags:

views:

525

answers:

1

Hi,

When I use a ListView in WPF it always generates one extra column at the end of the ListView. For example, if I define two columns in my listview and when I run it it generates those two columns plus one empty column header. Any idea how I can remove that?

Sample ListView XAML

<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

A: 

Did u got any reply? Please let me know? (My Mail Id- [email protected])

Rajendra