ni.com is currently experiencing issues.

Support teams are actively working on the resolution.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

INSERT A COMBOBOX INTO A TABLE CONTROL

Hi,

Could you help me introducing a combobox into a table control.

i would like to fix this combo box in all cells of a specific column.

 

Do you know how to do it?

The idea is similar to the attached picture.

 


Captura.PNG

 

Thanks in advance.

0 Kudos
Message 1 of 15
(6,526 Views)

Unfortunately You can not do this in LV .

 

You can write code that will simulate this for You. For example when You click on a cell ring will be moved to tht cell and clicked. 

 

You can also this wrapper over .net classes:

https://github.com/unipsycho/LabVIEWdotNetDataGrid

 

0 Kudos
Message 2 of 15
(6,524 Views)

Hi, 

I do not know how to do it exactly using code, i have been searching on google and I could not find a solution. how can I prgram on LabView using code? Could yo help me?

 

Thanks in advance.

0 Kudos
Message 3 of 15
(6,463 Views)

You can do it with an XControl.  It's a bit complicated, but I already made one a while ago.

 

"If you weren't supposed to push it, it wouldn't be a button."
Message 4 of 15
(6,443 Views)

@paul_cardinale wrote:

You can do it with an XControl.  It's a bit complicated, but I already made one a while ago.

 


That is WAY cool Paul!

 

Just drop that XControl on the FP, pop-up to create a pop-up to create an Invoke node >>> Set Selection List

 

DONE!

 

Very nice!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 15
(6,430 Views)

How about switching to array of clusters (with thin edge)? This will impact your code of course.

Untitled.png

0 Kudos
Message 6 of 15
(6,425 Views)

@pawhan11 wrote:

Unfortunately You can not do this in LV .

 

You can write code that will simulate this for You. For example when You click on a cell ring will be moved to tht cell and clicked. 

 

You can also this wrapper over .net classes:

https://github.com/unipsycho/LabVIEWdotNetDataGrid

 


That is the fastest way known to get proven wrong!  But, Saying "You can't do that with LabVIEW" usually helps the original poster Smiley Very Happy as seen here


"Should be" isn't "Is" -Jay
0 Kudos
Message 7 of 15
(6,416 Views)

Not as wrapped up as nice as the X-Control, but I shared this example years ago showing it done with a Numeric.  I had code for a customer I had done with a mix of strings, rings, numerics.

 

https://forums.ni.com/t5/LabVIEW/Possible-to-have-a-table-control-that-takes-numbers-only/m-p/318497...

 

The message linked describes what I am doing.  The message after that has an example with the numeric.  The example could be modified for a ring control.

0 Kudos
Message 8 of 15
(6,410 Views)

@Ben wrote:

@paul_cardinale wrote:

You can do it with an XControl.  It's a bit complicated, but I already made one a while ago.

 


That is WAY cool Paul!

 

Just drop that XControl on the FP, pop-up to create a pop-up to create an Invoke node >>> Set Selection List

 

DONE!

 

Very nice!

 

Ben


If you don't need to change the lists dynamically, just open the Custom Properties dialog and edit the lists.

"If you weren't supposed to push it, it wouldn't be a button."
Message 9 of 15
(6,406 Views)

I modified that example in the other thread for a ring control.  The example requires a double-click to activate, but you should be able to change to a mouse click if you wish.

Message 10 of 15
(6,394 Views)