LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multicolumn Listbox Selected row value

Hi,
I'm getting data from SQL Server database and putting into a Multicolumn Listbox or a Table.  I need to be able to know what rows the client has selected so I can get more database data.  The amount of rows in the first listbox can change from one to 1,000 or more.  What I would like to see is an array of data that has the row numbers or the value of all the rows selected for the first columns.
 
List box has as it rows.
1,2,3,4,5,6,7,8,9,0
Client selects
3,4,6,8,0
I want to see either the values of column 1 in the rows selected or the row numbers.
 
I cannot see a way to do this.  I have called NI with no luck.  I will call again today if I need to.
 
Is anyone able to help me on this problem?
If you can will you  please show me how?
 
Thanks
DonRon
0 Kudos
Message 1 of 4
(11,246 Views)

Hi DonRon,

Look at attached VI

It uses multicoloum list box to display rows of string Data.

When you select the set of  Rows( do this by right clicking on mouse and simultaneously pressing control/shift key) 

The first column elements of those rows will be displayed in the array next to the list box

Regards

Dev

 

Message 2 of 4
(11,234 Views)

And this VI displays the selected Row Numbers.

Regards

 

0 Kudos
Message 3 of 4
(11,232 Views)
Thanks, works GREAT!!!
DonRon
0 Kudos
Message 4 of 4
(11,224 Views)