LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize number of columns in multicolumn listbox

Hi all This is a simple request.

 

I have a multicolumn listbox that has an extra column(unused). 

I could not delete the last column or initate to the correct number of visible columns.

 

There's nothing I could do to change  it.

 

Pls advise

 

Thanks in advance

0 Kudos
Message 1 of 7
(4,825 Views)

How about using Property Node with NumCols and NumRows selections wired to the desired number of rows and columns.

Those will determine the visible rows and columns. ItemNames input (2D array of strings) determines the actual size of the Multicolumn Listbox.

It is up to you to determine the size by wiring the desired 2S array of strings to this input and using the above two properties to display only rows and columns of interest.

0 Kudos
Message 2 of 7
(4,823 Views)

Using Num Cols or ItemNames properties do not really remove the last column.

 

I tried using the contex menu to click on the "delete column" and it does not work.

I wonder why its does not work

 

Clement

0 Kudos
Message 3 of 7
(4,821 Views)

Do u want to hide the particular row and column (to change the visiblity of row and column) or do u want to clear the data of the row and colum?

 

1. To hide the particular row and column use the propety node NumCols,NumRows

2. If u want to clear the Data of the selected row and column then get the item names and replace the data with blank data.

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 4 of 7
(4,814 Views)

For every column you can set the actual width in pixels.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 7
(4,801 Views)

I wish that were the case, but apparently NI believes 0 == 2.  A zero-width colum still shows a gap between the two vertical gridlines.  Why this has never been fixed I have no clue.

0 Kudos
Message 6 of 7
(4,477 Views)

I struggled with this for a while too.  I finally determined that if I manually entered data into a cell in the column (not the header row) to be deleted, then right-click/delete column would work.

0 Kudos
Message 7 of 7
(4,398 Views)