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 

RowStyle

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



Joined: 09 Jun 2010
Posts: 21

PostPosted: Tue Jun 29, 2010 3:29 pm    Post subject: RowStyle Reply with quote

I'm using
in the VirtualTree_GetRowData sub

e.RowData.OddStyle.BorderColor = Color.Black
e.RowData.OddStyle.BorderWidth = 1
e.RowData.OddStyle.BackColor = Color.WhiteSmoke
e.RowData.OddStyle.BorderRadius = 5
e.RowData.OddStyle.BorderStyle = Border3DStyle.Flat
e.RowData.OddStyle.WordWrap = True
However the border is drawn around every cell in that row. Is there a way to only paint the row so there are no verticle lines except at the two ends?

Thanks
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jun 30, 2010 2:01 am    Post subject: Reply with quote

If you set the BorderSide property to just display the Border on the bottom you will get nearly what you want:

Code:
Me._virtualTree.RowStyle.BorderSide = System.Windows.Forms.Border3DSide.Bottom
        Me._virtualTree.RowStyle.BorderStyle = System.Windows.Forms.Border3DStyle.Flat
        Me._virtualTree.RowStyle.BorderWidth = 1


See the screen shot below:



Note that if you are going to set the RowStyle dynamically by handling the GetRowData event then you can't just set the RowStyle properties - as this will affect all rows that use the same style. You need to create a new Style object - see the following FAQ for more information:

http://www.infralution.com/phpBB2/viewtopic.php?t=419
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
morgenweck



Joined: 09 Jun 2010
Posts: 21

PostPosted: Sun Sep 05, 2010 3:41 pm    Post subject: Reply with quote

It would be great if you could provide a row style so that the top, bottom, left and right could be displayed with a border and with a radius at the corners.
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Sep 05, 2010 10:43 pm    Post subject: Reply with quote

I assume that only want the radius at the ends of the rows - as per the previous posts in this thread?
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
morgenweck



Joined: 09 Jun 2010
Posts: 21

PostPosted: Sun Sep 05, 2010 11:08 pm    Post subject: Reply with quote

Yes if possible. It put's a nice finishing touch on the data
Back to top
View user's profile Send private message
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