LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

set value for whole row/colum

Hi
I am looking for ability to set one value (it may be a label or something else) for whole row,
like cell group option in excel
 
 
Thanks
0 Kudos
Message 1 of 4
(3,134 Views)
Hi, VAL_TABLE_COLUMN_RANGE and VAL_TABLE_ROW_RANGE macros are what you need to access a whole column in a table and store a value in it. Look at the sample project I attached to this message.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 4
(3,120 Views)

Thanks for you example, but it set one value to each column. I looking for option like group in excel: when i set group range, excel deletes cell borders of all cells in range, and show all cells in range as one cell. So that's the ability that i am looking for.

Do you have any suggestions?

 

Thanks

0 Kudos
Message 3 of 4
(3,090 Views)
Unfortunately as far as I know cells in a table are not groupable: even if you can hide horizontal and vertical grid for some of them, nevertheless they remain individial cells.
 
I understand that what I am saying can be a *big* overshoot, but depending on the complexity of your application and on the presence of excel on the target machine you could consider using an excel worksheet embedded into your application to do what you need. Particularly, you can set a range of cells and apply to it the property of merged.
Wendy posted a sample project in this discussion that can illustrate how to handle a spreadsheet embedded into a CVI panel: it may worth a look at least to check if this can be a feasible solution.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(3,079 Views)