August 15th, 2011 09:28 PM
#1
[RESOLVED] How to Wrap Cell Content in Datagrid?
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?
August 15th, 2011 10:04 PM
#2
Re: How to Wrap Cell Content in Datagrid?
Depends on what you need to wrap. You can calculate the MAX width of EVERY column, before drawing the grid...
August 15th, 2011 10:10 PM
#3
Re: How to Wrap Cell Content in Datagrid?
And then, how can I put the rest of the content under the upper content in the same cell?
August 15th, 2011 11:25 PM
#4
Re: How to Wrap Cell Content in Datagrid?
Set the dbgrid.columns(index).WrapText=true
Always use [code][/code] tags when posting code.
August 16th, 2011 12:22 AM
#5
Re: How to Wrap Cell Content in Datagrid?
Thanks a lot. It really helpful. =)
Tags for this Thread
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width
Bookmarks