WPF listview remove extra column generated -
When I use a ListView in WPF, it always generates an 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 and an empty column header. With any thought how can I remove it?
Sample List View XAML
& lt; ListView Items Source = "{Binding Path = Search Entries}" DockPanel.Dock = "Top" & gt; & Lt; ListView.View & gt; & Lt; GridView x: name = "grdView" & gt; & Lt; GridViewColumn Header = "Name" DisplayMemberBinding = "{Binding SearchFieldName}" /> & Lt; GridViewColumn header = "balance" width = "auto" cell template configuration = "{StaticResource searchFilterDataTemplateSelector}" & gt; & Lt; / GridViewColumn & gt; & Lt; / GridView & gt; & Lt; /ListView.View> & Lt; / ListView & gt;
Thanks, Jithu
The last column is just left space In you need to have the size of the columns fit perfectly in the space. By defining the width in its own form, you are making sure that as big as possible.
Comments
Post a Comment