How to display a very long text in a DataGrid cell?

0
Greetings   I have a DataGrid that displays one field only. This field may contain a very long string. I need to somehow customize the DataGrid to allow for word breaks and auto cell height.
asked
2 answers
0

Hi Khaled,

I would suggest you to go for Datagrid2 first , as it provides more features  then give your datagrid class 'custom-dg' and try this

.custom-dg .table .table-content .tr .td>.td-text{

word-break: break-word;

white-space: normal;}

 

answered
0

You can increase the horizontal view width by adding "overflow-x:scroll;" to the Datagrid style, which will provide you with horizontal scrolling.

 

image.png

answered