开发者

Dont want scroll bar in datagrid but in outer container

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 whic开发者_C百科h 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.


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...`

height ="100%" widht="100%"

I hope this part is enough... will works Fine and Good Dude! CheckOut.....!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜