Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Is there any way to autosize tablenodes (Read 1486 times)
roberto.bonilla
YaBB Newbies
*
Offline


I'm so Happy

Posts: 14
Joined: May 25th, 2009
Is there any way to autosize tablenodes
Jun 18th, 2009 at 8:37pm
Print Post  
Is there any way to autosize tablenodes


I have many tablenodes with rows.

Someone has 22 rows, someone has 8 rows
how can set table size automatically.

I use  tbl.Bounds = New RectangleF(0, 0, 150, 75) to create the initial table node

Regards

RB  Grin
  

RB
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is there any way to autosize tablenodes
Reply #1 - Jun 19th, 2009 at 6:30am
Print Post  
If all rows have the same height, set the table height to table.CaptionHeight + table.RowCount * rowHeight + 3 * table.Pen.Width. changing just the table height can be down using the Resize method:

table.Resize(table.Bounds.Width, newHeight);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
roberto.bonilla
YaBB Newbies
*
Offline


I'm so Happy

Posts: 14
Joined: May 25th, 2009
Re: Is there any way to autosize tablenodes
Reply #2 - Jun 19th, 2009 at 5:39pm
Print Post  
Thanks Stoyan


works perfectly

Grin Grin

Regards

RB
  

RB
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint