About Listbox, Tree, and Table Controls
- Updated2026-12-04
- 3 minute(s) read
About Listbox, Tree, and Table Controls
Listbox, tree, and table controls in LabVIEW all provide end users a list of items to choose from. Understand their distinguishing features and the situations for which each is best suited.
Listbox Controls
A listbox is a control that provides multiple choices within a single box. LabVIEW includes single-column listboxes and multicolumn listboxes.
You can configure listboxes to accept single selections or multiple selections. Use the multicolumn listbox to display more information about each item, such as the size of the item and the date it was created.
When you type characters in a listbox at run time, LabVIEW selects the first item in the listbox that begins with the characters you type. Use the left and right arrow keys to go to the previous or next items that match the characters you type. Right-click a listbox and select from the shortcut menu to highlight the entire row when you select an item.
You can add a symbol next to a list item, such as in the LLB Manager window, where directories and files have different symbols. You also can insert separator lines between list items.
You can use a Property Node to modify list items and to gather information about list items, such as to detect the currently selected items or to set the handling of upper and lowercase characters when you type characters in a listbox at run time.
Listbox Example VIs
For examples of using a listbox, refer to labview\examples\Controls and Indicators\Listbox.
Tree Controls
Use the tree control in LabVIEW to give users a hierarchical, collapsible list of items from which to select.
You organize the items you enter in the tree control into groups of items, or nodes. You can expand a node to display all the items in that node and collapse a node to hide the items.
When you type characters in a tree control at run time, LabVIEW selects the first item in the tree control that begins with the characters you type.
You can change the hierarchy of items in the tree control.
You configure items in a tree control the same way you configure them in a listbox. You can also change the type of symbol that appears next to each node. You can configure whether the user can drag and drop items within the tree control.
You can use an Invoke Node to modify items in the tree control and to gather information about items. For example, you can detect which items, if any, the user double-clicked. When you add an item in the tree control, LabVIEW creates a unique tag for the item. Use this tag to modify items or to gather information about items programmatically. To modify the tags that LabVIEW creates for each item, right-click the tree control and select Edit Items.
Table Controls
A table control is a display for a 2D array of strings.
Each cell in a table is a string, and each cell resides in a column and a row. You enter headings when you add the table to the front panel, and you can change them using the Labeling tool or Operating tool.
The row and column headings of a table are not part of the table data. Table headings are separate pieces of data that you can read and set using Property Nodes.
The index display at the upper left corner of the table indicates which cell is visible. You can operate these indexes just as you do on an array.
Figure 8. Table Control shows a table and all its parts.
- Cell indicated by index values
- Column headings
- Vertical scroll bar
- Horizontal scroll bar
- Row headings
- Horizontal index
- Vertical index
Use the String functions to manipulate tables.