0

Access a MultiColumn Listbox

asked 2008-07-27 09:54:12 +0800

plagonell gravatar image plagonell
63

Hi, in my app i fill a multicolumn listbox from a table,
how i can get the value from the n-column of n row in a multicolumn listbox?

if the user select the 5 row(example), i need to get all the values of columns associated to these row.

Congratulations, for the new remodeled size

PD: i apologize for my english

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2008-07-28 12:58:50 +0800

micmen80 gravatar image micmen80
18 1

This is an example in which I get the values of the columns of a Listbox.

void move(){
// get the selected Listitem
List children = ammsbox.selectedItem.children;
// get the first Column value and put it into a textbox
idAmministrazione.value = ((Listcell)children.get(0)).label;
// get the second Column value and put it into a textbox
codAmministrazione.value = ((Listcell)children.get(1)).label;
}

Here, ammsbox is the ID of the Listbox on which I have declared onSelect="move()".
The index of the get() method represent the column of the selected row (0 is the 1st, 1 is the 2nd...).
When I select a row, the values of every columns are reported into textboxes.
I hope to have help you.
Bye.

link publish delete flag offensive edit

answered 2008-07-28 17:59:21 +0800

plagonell gravatar image plagonell
63

Thanks for your answer, that's what I need

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-07-27 09:54:12 +0800

Seen: 172 times

Last updated: Jul 28 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More