View previous topic :: View next topic |
Author |
Message |
morgenweck
Joined: 09 Jun 2010 Posts: 21
|
Posted: Tue Jun 29, 2010 3:29 pm Post subject: RowStyle |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jun 30, 2010 2:01 am Post subject: |
|
|
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 |
|
|
morgenweck
Joined: 09 Jun 2010 Posts: 21
|
Posted: Sun Sep 05, 2010 3:41 pm Post subject: |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun Sep 05, 2010 10:43 pm Post subject: |
|
|
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 |
|
|
morgenweck
Joined: 09 Jun 2010 Posts: 21
|
Posted: Sun Sep 05, 2010 11:08 pm Post subject: |
|
|
Yes if possible. It put's a nice finishing touch on the data |
|
Back to top |
|
|
|