请问,DataGrid的行高可以通过单元格中的内容多少来改变吗?
有的时候单元格中的内容比较多,仅使用列宽自动,会影响其他的列展示效果,所以想通过改变行高来展示更多的内容。
给你的 datagrid 加上 themeNames="wrap-cell-content" 就可以了。内容会自动换行。
还有其他一些表格样式,参考 https://vaadin.com/docs/latest/components/grid/styling
           
           
           1 个赞
         
         好的好的 感谢