I have a DataGrid bound to an XMLConnector and XMLDataSet. The XML data loads
fine into the components. However, I cannot get the value of the selected index
using: my_datagrid.selectedIndex
The call works fine if you use addItem to populate the grid.
Is there an issue being that the datagrid.selectedIndex parameter is bound to
the XML components?
Thanks,
Gary
MotionMaker - 25 Jun 2007 13:11 GMT
selectedIndex is inherited from the List component.
If an item is selected, then it has a value otherwise no value. User can
select and item or in code you can select an item.
Not even sure why addItem is setting the value. I would think you could have
the first item selected while adding items in the background and not confuse
the user.