LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing selected rows in multicolumn listbox

Solved!
Go to solution

Hello Community,

 

Hope you guys are doing good.

Is there any way to edit the particularly selected rows(using checkbox) in multicolumn listbox, even though i disable the editable cells option for the multibox listbox.

 

 

Regards,

John Marcus

0 Kudos
Message 1 of 6
(381 Views)

Hi,

 

What you want to do is not very clear.

 

By editing the rows, do you mean manually or programmatically (through property/method nodes)?

If you want to edit them manually, why disable "Editable Cells"?

Also, when you click an existing row, LabVIEW automatically selects it, so with your logic, every row will be editable anyway.

 

Please explain in more details what you want to achieve and possibly attach an example VI with what you have tried (saved for previous version, max 21.0).

 

Regards,

Raphaël.

0 Kudos
Message 2 of 6
(338 Views)

Hi 

 

Thank you for your response.

I don't want to edit the entire listbox, so i disabled "Editable Cells", i just need to edit the selected rows(selected using checkbox) manually during the runtime.

 

Thanks

 

0 Kudos
Message 3 of 6
(316 Views)

The MCLB has an "Allow Editing Cells" property. You should be to use the mouse move event, create an invoke node for the MCLB and select the Point to Row Column method to get the specific row and if that row is in your list, set the property to true. In principle, you could also use the symbols display on the MCLB to show your checkboxes, and if the user is the one who selects which rows can be edited (I expect not), use the same method to detect the click on the symbol and toggle the row state accordingly.

 

Another option might be something like using a single or double click event and if it's on an editable row, pop up a modal dialog which has a nicer UI for editing the value. I'm not a fan of editing things directly in text tables most of the time anyway, so I think I would prefer that anyway.


___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(283 Views)

The "value" of a multicicolumn listbox is the selected row (or rows if so configured). The items is a property.

You could for example use a double-click even to pop a dialog that contains the items in an array of strings where you can modify the values and an [OK] button that accepts the change and update the items on return (and a [cancel] button to not do anything).

 

0 Kudos
Message 5 of 6
(270 Views)
Solution
Accepted by Altenite09

@altenbach wrote:

You could for example use a double-click even to pop a dialog that contains the items in an array of strings where you can modify the values and an [OK] button that accepts the change and update the items on return (and a [cancel] button to not do anything).

 


 

Here is a simple example for that.

Message 6 of 6
(261 Views)