Example Code

Highlight a Selected Row in a Table Control

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates a common practice of dealing with Tables programmatically, which lets you highlight a row based on which row a user clicks on. 

 

Description

This example lets you highlight a row based on which row a user clicks on. It changes the background color and then changes it back to blank when another row is clicked on.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI
  2. Click on a row to highlight it

 

Additional Information or References

       snippet2.PNG

 

VI Snippet

1.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

National Instruments
Applications Engineer

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

Comments
Meng-Shiang.Lin
Member
Member
on

A useful function, thanks for sharing.