08-11-2009 06:00 AM
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
08-11-2009 06:04 AM - edited 08-11-2009 06:11 AM
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
08-11-2009 06:11 AM
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
08-11-2009 06:13 AM
Hi Shrinivas
How do you want it to work?
Best Regards
David
08-11-2009 06:40 AM
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
Would be nice of course but I dond't think that's possible ![]()
08-11-2009 06:45 AM
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
08-11-2009 06:45 AM
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 ![]()
Regards
David
08-11-2009 07:06 AM
Need some fine tuning regarding the scrollbar height but it's a start 🙂
Unless this isn't what you asked for ![]()
Small number of rows
Large number of rows
08-11-2009 07:20 AM
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
08-11-2009 07:55 AM
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