10-03-2024 04:56 AM
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
Solved! Go to Solution.
10-03-2024 11:49 AM
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.
10-04-2024 05:13 AM - edited 10-04-2024 05:15 AM
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
10-06-2024 04:20 AM - edited 10-06-2024 04:22 AM
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.
10-06-2024 09:58 AM
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).
10-06-2024 10:47 AM
@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.