开发者

How to make WPF DataGrid VerticalScrollBar Always Visible?

开发者 https://www.devze.com 2023-03-02 15:13 出处:网络
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 abl

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" ...
0

精彩评论

暂无评论...
验证码 换一张
取 消