I need to get the value of a certain column in the selected row via AS3, how can I do this?
It keeps returning null when I try grid.SelectedItem.text…
Thanks for the help! I need to be able to reference the column by name, in this case “ID”.
EDIT: Does this require an event or something? Shouldn’t there be a method for this built in? You’d think so…
Can you be a bit more specific ?
You can get get all the data you need from the DataGrid using the selectedItem.yourProperty.
Can you post a snippet that might make thing clear ?
Referencing a column by name is pretty easy:
The data is in the DataGrid’s dataProvider, the column is there for other purposes.
Say you have an ID property added to the DataGrid:
If you have setup a handler for the CHANGE event, you should be able to get the data you need
through the selectedItem:
HTH,
George