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

gridview column width not adjusting

$
0
0

My app has a window with a frame. The frame contains a page with a listview/gridview and buttons for adding a new row or editing an existing row. If the user selects the add button, the current page is pushed on a stack, and a details page is loaded in the frame. The details page receives the listview's itemscollection as an input arg. The user fills out some fields and clicks ok. A new item is added to the itemscollection. The first page is popped from the stack and loaded in the frame. The listview displays the new item. But the listview will not adjust its column widths if the new element has wider fields. How can I make the listview adjust its layout to accommodate the new item? I have tried myListView.InvalidateMeasure(), but it doesn't work.

Bill


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>