One solution is to build an array of the rows you want selected, and
then set the selectedIndices property of the datagrid to that array,
thusly:

function rowSelector( flipFlag:String ):Void {
  var aSelectedRows=Array();

  for ( var i=0; i < myDataGrid.length; i++ ) {
    if ( myDataGrid.rows[i].item.foo == flipFlag || flipFlag == '' ) {
      aSelectedRows.push(i);
    }
  }

  myDataGrid.selectedIndices = aSelectedRows;
}

Works like a charm. Props to cfbrianevans.

Thanks,
Matthew




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to