LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Multicolumn Listbox in LabVIEW

Hi.
I use Multicolumn Listbox in LabVIEW and I can select some rows with Shift and Ctrl keys. Is there any property node that returns that rows number. Maybe I want to Delete these rows from Multicolumn Listbox.
Thanks a lot.
Ali S.Mootab
0 Kudos
Message 1 of 6
(4,624 Views)
You don't need a property node. The multicolumn listbox terminal is a 1D array that contains all of the selected rows.
Message 2 of 6
(4,624 Views)

Hi Dennis.

Thanks for your help. And how can I disable some columns in Multicolumn Listbox when I checked the Editable Cells. In other words I want to enable some columns that user can edit them and disable another columns that user can't edit them. How can I do this?

Thanks.

Ali S.Mootab

0 Kudos
Message 3 of 6
(4,610 Views)

You can use a property node to disable rows however it is harder to disable columns.

To disable columns your best bet would simple be to use an event structure to catch where the user is trying to edit, and then based off whatever logic you are using, no allow the edit.

Message 4 of 6
(4,594 Views)
ok. it is good for you to know that in combobox when you want to edit items there is a multicolumn listbox that you can enable or disable the second column.i want to have such a multicolumn listbox in my program. but no problem. how can i disable rows if it is easier. i can rotate my table 90 degrees.
thanks
0 Kudos
Message 5 of 6
(4,581 Views)
To disable certain rows you need to use the "Disabled Items" property of the listbox. The format is an array containing the rows that are disabled. So if I wanted to disable rows 0,5,6 & 9, I would write an array with those contants to the property. Hope that helps  🙂
 
Tyler H.
National Instruments
0 Kudos
Message 6 of 6
(4,564 Views)