From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete multiple rows from table/list control

Solved!
Go to solution

Hi,

I want to have a table control in which a user can enter different entries, like this:

 

Capture.PNG

 

My program would read each entry at a time and do something.

However, I would like to give the user ability to delete multiple entries at once, like in an Excel spreadsheet - that is, the user selects multiple rows and presses "Delete" key and those entries get deleted. The Labview table does not allow this it seems - I can only delete one entry at a time - or I have to right-click and select Data Operations->Cut Data, which is awkward.

Is there a control better suited to what I want to do? I tried a Llist control, but it behaves in the same manner.

Thanks in advance!

 

0 Kudos
Message 1 of 6
(3,651 Views)
Solution
Accepted by topic author SenSLabs

You could write your own routine.  Use an Event Structure with a Key Down event.  If the delete key was pressed and the table has focus delete the elements that are selected.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 6
(3,625 Views)

Thanks a lot!

Good to know I haven't missed an easier option 🙂

0 Kudos
Message 3 of 6
(3,617 Views)

Dear sir,

 

Please help in this case 

suppose i have data 

             
  112233 1 2 3 4  
  112233 2 3 4 5  
  112233 3 4 5 6  
  112233 4 5 6 7  
  112244 5 6 7 8  
  112244 6 7 8 9  
             

 

i want to delete  "112233      4        5       6     7   " by selecting row.

or can we delete row by selecting checkbox.?.

need your help.

 

Thanks,

james Tan 

0 Kudos
Message 4 of 6
(2,804 Views)

@jamestan077 wrote:

Dear sir,

 

Please help in this case 

suppose i have data 

             
  112233 1 2 3 4  
  112233 2 3 4 5  
  112233 3 4 5 6  
  112233 4 5 6 7  
  112244 5 6 7 8  
  112244 6 7 8 9  
             

 

i want to delete  "112233      4        5       6     7   " by selecting row.

or can we delete row by selecting checkbox.?.

need your help.

 

Thanks,

james Tan 


Hi jamestan077,

 

If you are wanting the user to be able to delete one row at a time, they can highlight the row they want to delete, right click, and select delete data. 

 

Crossrulz also suggested a method above of deleting multiple rows without using the Cut Data operation. Was there a specific method you wanted for the user to be able to interact with a table control? 

 

Best,

David F.

Applications Engineering

National Instruments

www.ni.com/support

0 Kudos
Message 5 of 6
(2,790 Views)

Thank you So much,

 

I am studying so many new things from you.

 

Thanks a lot..

0 Kudos
Message 6 of 6
(2,685 Views)