LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to delete select data in the table control

Solved!
Go to solution

  this problem makes me headache.

  I am new to labview, when  a table shows some data. many rows and column. how can delete on row which I selected. the other rows are remain no change.

 

 

I really need help.thanks in advance. It is better to attach the program.my labview is 2009

0 Kudos
Message 1 of 9
(7,783 Views)

Instead of table use the Multicolumn list box so when you click any row you will get that index wire the index to the delete from array the selected row will be deleted.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 9
(7,781 Views)

Hi,

 

You can do it with a table control as well. Check out the attached VI. To delete a row, Run the VI, just right click the row and click "Delete Row". To get back the default values, click reinitialize.

 

Reards,
NitZ

(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved;)) 

0 Kudos
Message 3 of 9
(7,773 Views)

Hi NitzZ:

 thanks very much! can u motified the program for me, this program for user, I want to click the clear button to delete the selected row rather right click.

 thanks very much! 

0 Kudos
Message 4 of 9
(7,766 Views)
Solution
Accepted by topic author feinimoshu

That kind of thing won't work with Table thats why I suggested you to go for Multicolumn list box. You can make it simple.

 

Delete_Row_Multi_listbox.png

 

Good Luck

-----

The best solution is the one you find it by yourself
Message 5 of 9
(7,761 Views)

Hi,

 

Check the attached VI. I am not sure if this is the best way to do it or not. As Anand has suggested, multicolumn listbox is also a good alternative.

 

Regards,
Nitz

(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved;)) 

Message 6 of 9
(7,758 Views)

 P Anand:

Thanks a lot. I still have a problem. If I want press clear button can delete the selected row and I also want to press Add button to add data into the multiculomn listbox,how can I do? use event structure?  I really do not know! can you please help me? if you can ,insert the block diagram for me , I really appreciate. 

Thanks very much


 

 

0 Kudos
Message 7 of 9
(7,742 Views)

If it is only add and delete event structure not required you can use case structure.

 

See that attached example.

-----

The best solution is the one you find it by yourself
Message 8 of 9
(7,738 Views)

I believe he asked for a solution for a Table control, not for Multicolumn Listbox. Your solution looks much more efficient than the other multicolumn solution that was suggested here though...

 

Regards and good luck..Smiley Wink

 

 

0 Kudos
Message 9 of 9
(7,492 Views)