Since some of the cells have long contents, I want to wrap the cell content. As a result, the content of the cell will be displayed in two layers form. So, user doesn't have to scroll horizontally. Can anyone teach me?
Printable View
Since some of the cells have long contents, I want to wrap the cell content. As a result, the content of the cell will be displayed in two layers form. So, user doesn't have to scroll horizontally. Can anyone teach me?
Depends on what you need to wrap. You can calculate the MAX width of EVERY column, before drawing the grid...
And then, how can I put the rest of the content under the upper content in the same cell?
Set the dbgrid.columns(index).WrapText=true
Thanks a lot. It really helpful. =)