I am trying to figure out how to get AdvStringGrid to word wrap and I am missing something. Attached is a sample project of everything I can think to try. How do I get it to word wrap?
Wordwrapping Merged Cells.zip (9.0 KB)
I am trying to figure out how to get AdvStringGrid to word wrap and I am missing something. Attached is a sample project of everything I can think to try. How do I get it to word wrap?
Wordwrapping Merged Cells.zip (9.0 KB)
OK. I was able to reproduce what you had in the screen shot by changing the DefaultRowHeight. My font is a little bigger when displayed so it only shows one row. It is word wrapping, if the cell height of all cells to a larger size.
What I was looking for was the grid to expand the vertical height of each single row to the height required to display the text but not expand the height of rows that require less vertical space. Like Excel does.
My problem is that some rows will have paragraphs full of text, while others just a few words and I don't want to waste vertical space. Is there a way to accomplish that with either this grid or the FNCDataGrid? (Actually, I would prefer this grid because I would have to rewrite other code that used the grid)
With TAdvStringGrid you can call grid->AutoSizeRows()
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.