DataGrid Text Wrap
-
It seems there is a way to wrap text for a datagrid in .ASP and there is a way to wrap a header of a column. Does anybody know is there is a VB.NET way to wrap text in a column? Thanks, cb
I also need this functionality. I've written a custom word wrap function, but the height of each row doesn't grow to show the wrapped text. This seems to be a real nightmare! Don't worry, nobody lives forever.
-
I also need this functionality. I've written a custom word wrap function, but the height of each row doesn't grow to show the wrapped text. This seems to be a real nightmare! Don't worry, nobody lives forever.
It would appear that the best way tp do this would be to create a custom column class. Could anyone who's done this offer some help? I have a function that will do the word wrap based on a given width, font, and graphics object. Don't worry, nobody lives forever.
-
It seems there is a way to wrap text for a datagrid in .ASP and there is a way to wrap a header of a column. Does anybody know is there is a VB.NET way to wrap text in a column? Thanks, cb
Hi I wrote a custom column style. The style only allows viewing, not editing. (Time is money, and money is something my client doesn't like parting with.) The main problem is that the column style needs to return the preferred, and minimum, width and height for it's contents BEFORE the paint operation takes place. I fiddled this by making a fixed height, and then the form housing the datagrid resizes the wrapped column so that the sum of the column widths equals the datagrid width. Too much code to include here, but you get the idea. Imperfect solution for an imperfect world. (Or is the world imperfect because people like me are willing to settle for less than perfection?) Don't worry, nobody lives forever.