LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set table header width

Solved!
Go to solution

I have a pretty simple VI that resizes a MC listbox columns based on the text size. The only thing I don't know how to implement is including row headers. I don't see a property for setting the row header cell width. Suggestions?

 

0 Kudos
Message 1 of 9
(4,328 Views)

Change the ColHdrs[] to RowHdrs[] in the property node, index at column 0 and in the for loop change unbundle to Row instead of Column. DId you try this?

 

*************************************************
CLD
*************************************************
0 Kudos
Message 2 of 9
(4,309 Views)

No, that's not the problem. Think about it, the row headers are actually a column in the table. There is no way to set the width of the "row headers" column in the table. Don't let the property names confuse you Smiley Wink

 

 

DId you try running it and see the working form? You will better understand the issue if you do.

0 Kudos
Message 3 of 9
(4,304 Views)
Solution
Accepted by GregFreeman

Column = -1

0 Kudos
Message 4 of 9
(4,297 Views)

@Darin.K wrote:

Column = -1


Let me guess...it's in the context help?

0 Kudos
Message 5 of 9
(4,292 Views)

You'd have to tell me, I just guessed.  Smiley Tongue

 

Edit:  Now that you mention it, the Detailed Help is actually quite informative here.

0 Kudos
Message 6 of 9
(4,289 Views)

Column = -1 will set the header of the first row but how will iterate through the next header? Will the loop alone will do it if the iteration count increments to second row?

 

*********

Sorry this just got me curious!!...ofcourse after understanding the problem Smiley Happy

*************************************************
CLD
*************************************************
0 Kudos
Message 7 of 9
(4,271 Views)

I do not know if I got your question right...but have tried this.

It will increase row headers width.

Let me know if this is what you want...

 

 

Set row header widt.JPG

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Message 8 of 9
(4,254 Views)

@Gak wrote:

I do not know if I got your question right...but have tried this.

It will increase row headers width.

Let me know if this is what you want...

 

 

 


Yes, it looks like -1 works. I guess I just wont be able to use an autoindexed array and the counter, because the counter is unsigned. I'll just make things easy and have a second for loop to size row headers that does the same thing as my exisiting loop but has -1 wired up to the column index. Also, just a note for you, property nodes are expandable, no need to have another node for width, just drag it down 😉

0 Kudos
Message 9 of 9
(4,235 Views)