How to make WPF DataGrid VerticalScrollBar Always Visible?
Do you knows how to make the WPF DataGrid
VerticalScrollBar
always visible, even if there is no data to display without putting DataGrid
object instid a 开发者_如何学编程ScrollViewer
?
You should be able to set the ScrollViewer.VerticalScrollBarVisibility attached property like so:
<DataGrid ScrollViewer.VerticalScrollBarVisibility="Visible" ...
精彩评论