Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

column in gridview in listview not sizing itself

$
0
0

I have a ListView whose View is a GridView. The CellTemplate for the 1st GridViewColumn is a DataTemplate that has a custom control in it. I appears that the 1st GridViewColumn sizes itself to fit its Header, not any of the custom controls. The custom controls are wider than the Header and are truncated. I want the GridViewColumn to size itself to fit the custom controls. I tried the technique suggested here.

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/65e0b891-8f52-4af9-8766-a3f3a039bbf6

I used the event handler for ItemContainerGenerator.StatusChanged. I check that the status is ContainersGenerated. It doesn't work. Any ideas?


Bill Swartz


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>