不希望滚动条出现在数据网格中,而是出现在外部容器中
我有一个包含 70 多列的数据网格(很少有固定列)。我不希望滚动条出现在数据网格(水平和垂直)中,而是出现在父容器(VBox(或画布))中。这将有助于垂直滚动屏幕,而无需在数据网格中一直向右滚动以垂直滚动。谢谢你们。
I have a datagrid with more than 70 columns (with few fixed). I dont want the scrollbar to appear in datagrid (both horizontal and vertical) but in the parent container which is a VBox (or canvas) instead. This will help to scroll the screen vertically without having to scroll all the way right in datagird to scroll vertically. Thanks Guys.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
成功了。将数据网格包裹在 VBox 中,其高度和宽度为 100%,然后将数据网格的宽度和高度(在运行时)设置为略小于其父容器的宽度和高度。
Got it working. Wrapped the datagrid inside a VBox with its height and width as 100% and then set the width and height of datagrid (at runtime) as little less than its parent container's width and height.
只需取出可滚动策略..水平..垂直...如果您在顶部和底部使用填充,也采取该...并仅保留...`
我希望这部分足够...将工作得很好并且好家伙!查看.....!
Jus take out the scrollable policy..horizontal..vertical...and if u using padding in top and bottom take that too... and keep only...`
I hope this part is enough... will works Fine and Good Dude! CheckOut.....!