Example Code

Clicking a Column Header to Sort a Multicolumn Listbox

Code and Documents

Attachment

This VI shows how to sort a multicolumn listbox when you click a column header. Click a column hearder once to sort that column in ascending order. Click the header again to sort the column in descending order. The VI reorders all other columns to maintain row integrity. The top-level VI in the LLB passes a control reference for the listbox to a subVI that programmatically sorts the listbox.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors