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

How to extend DataGrid's last column when num cols not known at XAML design time?

$
0
0
Normally, to get a DataGrid column to extend across the remaining available width one would specify the columns width to be "*". However, how can this be done if the number of columns is not defined at design time? In this case, there is a DataGrid whose content comes from a collection that may have 1, 2 or 3 columns. The number of columns in this collection are not known at design time. What must be done in order to ensure that the rightmost column of the DataGrid extend across the remaining available DataGrid area?

Richard Lewis Haggard


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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