PDA

View Full Version : getting the value from a datagrid selection


Israfel
09-01-2005, 03:46 PM
Hi everyone,
I've got a question with what i'm sure is an easy answer but i cant find it, any help appreciated. got a data grid populated with a simple test array containing label and unique identifier and am adding that to my datagrid with no problem, but when i try to read back anything through a trace from my datagrid change listener it gives me undefined. ive tried selectedItem.label, selectedIndex.label, itemIndex.label and countless other combinations around that but i can't seem to request a specific value from the row, what i am doing wrong.
Cheers

Israfel
09-01-2005, 04:32 PM
I knew it was something stupid, disgusted with myself. for the benefit of anyone that may not know, dont forget to use target --- trace(event.target.selectedItem.Value);