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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -