Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Display multiline and wrap text in a cell

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
Happs



Joined: 13 Jul 2011
Posts: 62
Location: Sydney, Australia

PostPosted: Sun Sep 04, 2011 2:18 am    Post subject: Display multiline and wrap text in a cell Reply with quote

I am using object model and Auto Generate to do all binding, working fine so far.

The results in some cell could be multiline, would like to wrap it nicely, I have set:

- RowStyle.WordWrap = True
- RowEvenStyle.WordWrap = True

However, cell value not wrapped, please see screenshot: http://screencast.com/t/hHtdTairJ

Am I missing something or not setting some properties?

Ideally I will like to show two lines in a cell where cell value is more then two lines, tooltip should show full text.

Could you please provide some help.

Thank you.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Sep 05, 2011 2:42 am    Post subject: Reply with quote

The style for a Cell inherits from its Column CellStyle - not from the Row Style. This means that you either need to set the CellStyle.WordWrap property for the column (which you can do using the Virtual Tree Editor) or you have to handle the GetCellData event if you want to do it programmatically.

Then you will also need to set the VirtualTree.RowHeight so that the rows fit two lines of text. The Tooltip whould automatically be show if the text doesn't fit in the available space.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group