In order to get the selectedItems after setting selectedIndices, I have to perform the following?
var mySelectedIndices:Array = ["0", "5"];
var tmpArray:Array = new Array();
for(var i:Number = 0; i < mySelectedIndices.length; i++)
{
var tmpObj:Object = myDataGrid.dataProvider.getItemAt(Number(mySelectedIndices[i]));
tmpArray[i] = tmpObj;
}
myDataGrid.selectedItems = tmpArray;
Really? Am I missing something here?
Brendan
On 7/10/06, Brendan Meutzner < [EMAIL PROTECTED]> wrote:
>
> Hi,
>
> When I set selectedIndices programmatically on a datagrid, it results in the proper rows becoming selected/highlighted, but does not affect the selectedItems property of the datagrid. Is this normal behaviour?
>
>
> Brendan
>
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

