Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
前段时间我需要调整WinForms DataGridView它适合所有行的大小。我的意思是没有垂直ScrollBar。下面的代码:
WinForms DataGridView
ScrollBar
var sum = i.ColumnHeadersHeight; foreach (DataGridViewRow j in i.Rows) { sum += j.Height; } i.Height = sum;
现在我需要在WPF DataGrid. 有任何想法吗?
WPF DataGrid