From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a ComboBox inside an XTable cell

Solved!
Go to solution

Hallo, I have an XTable showing channel number, channel name and unit of measure. The unit can be freely chosen by the user, but I want it to be chosable among 2 options, so I want a combobox in each row of the table. How to do that?

More over: How do I set the default value of a combobox? For example: if the unit of measure can be chosen among "bar", "Pa" or "atm", I want to show Always as default value "bar".

0 Kudos
Message 1 of 4
(2,338 Views)
Solution
Accepted by topic author mattia_verona

Double click the column name and you should get this configuration window:

43.JPG

0 Kudos
Message 2 of 4
(2,313 Views)

Thank you, very useful!

 

Mattia

0 Kudos
Message 3 of 4
(2,295 Views)

Follow the link below for a complete example of using a ComboBox in an XTable.  A custom class is used to make it easier to work with a ComboBox control within an XTable.

 

http://www.savvydiademsolutions.com/dialog.php?topic=XTable-class-controls

0 Kudos
Message 4 of 4
(2,211 Views)