LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set total number of rows of table control

Hi All,

 

I want to set the total number of rows of table control. I don't want to display the blank rows in table.

 

 

Regards,

Shrinivas

0 Kudos
Message 1 of 11
(4,452 Views)

Hi Shrinivas

 

For that you use a property node. Right-click the table control in the block diagram, choose Create->Property Node->Number of Rows.

After placing the Property Node on the block diagram you will probably have to right-click it as well and choose "Change all to Write"

so you can input the number of rows you want.

 

Best Regards

 

David

NISW

Message Edited by Davidek on 08-11-2009 06:11 AM
0 Kudos
Message 2 of 11
(4,449 Views)

Hi David,

 

Thanks for reply. But it changes the number of visible rows of the table control and also changes the height of it. Is there another way?

 

Thanks & Regards,

Shrinivas

0 Kudos
Message 3 of 11
(4,443 Views)

Hi Shrinivas

 

How do you want it to work?

 

Best Regards

David

0 Kudos
Message 4 of 11
(4,440 Views)

I think he wants a constant control height with only gridlines for a well defined number of rows.

The bottom of the control, the unused part, should be grey or any other colour.

Something like this

 

SNAG-012.jpg

 

Would be nice of course but I dond't think that's possible Smiley Sad

0 Kudos
Message 5 of 11
(4,424 Views)

Hello David,

 

In my application, when I select data from combo box, I'm filling the table. So, the data in table is not fixed. If I've a table having height say 300 pixcels, it should remain same. Also, I don't want to display blank rows in table. I'm giving color to alternate rows, so when there are 5 rows having data, those are displayed with alternate colors. But remaining rows are displayed in white color. Please have a look at image.

 

Thanks & Regards,

Shrinivas

0 Kudos
Message 6 of 11
(4,421 Views)

It is sort of possible if you put the table in a cluster. Problem you get is if you make the table larger than the cluster, you need scale the cluster with the table to make everything visible. I'm still working on it Smiley Wink

 

Regards

 

David

0 Kudos
Message 7 of 11
(4,419 Views)

Need some fine tuning regarding the scrollbar height but it's a start 🙂

Unless this isn't what you asked for Smiley Sad

 

Small number of rows

 SNAG-013.jpg

 

 

 

 

Large number of rows

SNAG-014.jpg

0 Kudos
Message 8 of 11
(4,411 Views)

Hello Shrinivas

 

So is something that looks like Alain posted ok? Can there be more rows than there is space? Is scrolling OK in that case?

 

Best Regards

David

0 Kudos
Message 9 of 11
(4,408 Views)

Hi David,

 

It works, but when I click scrollbar down button still it shows blank rows.

Please have look at image. I want exactly same.

 

Thanks & Regards,

Shrinivas

 

 

0 Kudos
Message 10 of 11
(4,393 Views)