Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Tablenode - Column visibility (Read 1970 times)
BidMaestro
Junior Member
**
Offline


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
Tablenode - Column visibility
May 20th, 2009 at 10:38am
Print Post  
Stoyo

Do you have a means to make a Tablenode column invisible i.e. equivalent of visible=false.
The reason is that I have two columns of visible data and I would like to store a guid value in the third column which need not be displayed. I could make the column width=0 however the last instruction I perform is a ResizeToFitText(False, False) to resize the table and contents which would either show the guid data or if I set the width after the resize I would have a large blank column displayed in the table.

Hopefully this makes sense to you.

I have a second question; how can I determine the height and width of the tablenode? The reason is that I want to restrict it size to only display 10 rows where 30 or 50 rows may be in the table.

Doug
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Tablenode - Column visibility
Reply #1 - May 20th, 2009 at 12:55pm
Print Post  
Hi Doug,

You could store the GUID value in the Cell.Tag rather than Text. If all rows have the same height, multiply it by 10 and add CaptionHeight + 3 pixels to get the height that should fit 10 rows.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
BidMaestro
Junior Member
**
Offline


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
Re: Tablenode - Column visibility
Reply #2 - May 20th, 2009 at 1:11pm
Print Post  
Stoyo

Thank you on the use of the cell.tag.

I understand what you are saying about the height calculation however the Tablenode does not have a height and width property to read or alter. The only time height and width are mentioned is when you create it; unless I have misread the Dev Guide.

On a separate matter with regard to Tablenodes other than changing the cell colour after it is clicked is there a way to select/highlight a row.

Doug
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Tablenode - Column visibility
Reply #3 - May 20th, 2009 at 1:31pm
Print Post  
Changing the height can be done like this:

RectangleF r = table.Bounds;
r.Height = newHeight;
table.Bounds = r;

There is no built-in row selection, so you'll have to change the cell color or use custom drawing.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
BidMaestro
Junior Member
**
Offline


to learn is to live

Posts: 74
Location: Australia
Joined: Apr 20th, 2008
Re: Tablenode - Column visibility
Reply #4 - May 20th, 2009 at 1:39pm
Print Post  
As always I appreciate your great help and assistance.

Almost midnight here and time for bed.

Have a good week.

I will put an entry in the Feature Suggestions for a Row Highlight function and Height & Width properties for the tablenode.

Thanks
Doug
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint