How to restrict the datagrid column to display only 40 characters per line, and wrap it afterwords.
e.g. If the field has 2000 characters, I want to wrap it in different lines with 40 characters per line. But if the field has no space in between meaning if the length of the string is "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", it should still wrap at 40 characters.
Is there a way to do it
Thanks
Tap