Example Code

Delete Listbox Row without Affecting Format of Other Cells Using LabVIEW

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 VI programmatically deletes a row from a multi-column list box while maintaining the formatting of the other cells.

 

Description

Properties such as background color, font, etc. are properties of each cell. If a row is deleted and all items are shifted up by one row, the cell properties do not automatically shift with the text. However, this can be accomplished using property nodes for the list box. To test the code, set Row to Delete to a row that currently exists in the list box. Since it is zero-indexed, the first row is row 0.  

 

Requirements

LabVIEW Full Development System 2012 or compatible

 

Steps to Implement or Execute Code

1.Run the VI. 

2. Notice that the selected row is deleted, and all other items keep their original formatting

 

Additional Information or References

VI Block Diagram

Delete Listbox Row without Affecting Format of Other Cells LV2012 NI Verified BD.jpg

 

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

 

Jennifer R.
National Instruments
Applications Engineer

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

Comments
amithkuttan
Member
Member
on