c# - Resize DataGrid to fit all rows -
some time ago needed resize winforms datagridview
fits rows. mean without vertical scrollbar
. code below:
var sum = i.columnheadersheight; foreach (datagridviewrow j in i.rows) { sum += j.height; } i.height = sum;
now need obtain similar effect in wpf datagrid
. ideas?
Comments
Post a Comment