I was going through the tutorial on Accessing XML data (well
written I have to add) there is a small bug in it, due to an
invalide assumption, and that is that it takes the selectedIndex
from the grid, and it assumes it is the same as that of XML, which
is not the case. Here is the link:
I understand this tutorial is about the "accessing" XML not
necessarily communicating with DataGrid. And I have similar
problem, and I haven't be able come up with a nice way of solving
this problem, that once you double click on a row in a data grid,
you can detect its "id"/ entry/child-number (or the unique property
of that entry).
I don't want to analyze that example. Are you asking how to
get an id or some other value when you select a row in a datagrid?
When you select an item in any list-based control, the
control's selectedItem properety contains a reference to the
dataProvider item object for that selected item. You can access any
property that is present in that object:
var sId:String = myDataGrid.selectedItem.myIDProperty;
If I have misunderstood, please restate your question.
Thanks a lot Tracy, I knew there must be a nice way around
But the problem remains with the samples in that tutorial
(which is perhaps not too critical as the point of that tutorial
was to explain XML not interfacing DataGrid)