11-22-2014 04:36 AM
I need an object to store lab-measurements and are wondering, if it’s possible to use a multicolumn listbox.
My problem is that, I need to know the row number of the active row. By ‘the active row’, I understand the row belonging to the cell activate by user scroll using arrows/ or mouse click.
Background for my question:
I want to store the sample number I the first column. The sample numbers are imported from Excel.
The measurements for the actual sample should come in, in the cells to right in the same row.
The samples are not always ordered, which means, that I might need to scroll to the correct sample number.
In order to place the output from the measurement coming from my labView program, I need to know what is the row number of the activate row. But how ?
Is it possible using multicolumn listbox, or is there another object, which can do the trick?
In c# it’s possible to do as described using datagridview.
Solved! Go to Solution.
11-22-2014 08:11 AM
Hello!
Use event structure and multicolum listbox. For example set event to trigger for double click, and at right side border you'll be able to read number of row that was choosen.
Then read data from first column and selected row.
11-22-2014 08:23 AM
Great !!!!
Thanks a lot!
I was thinking a little in that direction, but I'm new in labview.
Regards Michael
11-22-2014 08:35 AM
Glad I could help. If you'd need any more help don't hesitate to ask;)
BTW: if post is a solution, you can mark it as one;)
11-22-2014 11:28 AM
I just tested your solution.
I new as I mentioned and don't recognize the object after the itemNames.
What is that ?
11-22-2014 11:33 AM - edited 11-22-2014 11:35 AM
@mkoppelgaard wrote:
I just tested your solution.
I new as I mentioned and don't recognize the object after the itemNames.
What is that ?
11-22-2014 01:09 PM
I'm afraid I need a little more help.
I tried myself - see attached.
Could I have you example?
And is dobble click the only way to get the activecell row?
Is i possible to get the active row simply by running at piece of code in the end off my "producing my data" code?
11-22-2014 02:12 PM
11-22-2014 02:25 PM
I have added some code to your VI.
11-22-2014 03:47 PM
Thanks - got it now
I take it, I can't get out which cell I'm in without using event.
I can't run my datacollection code, and put in the data in the the selected row, without having to dobbelt click on a cell in the row or changing a value in the row.
The only way to let Labview to know which cell I'm in is to dobbeltclikk or to change value? Correct?