Dom,
I got my issue resolved.
Unfortunately my list box only has two columns of the datagrid, so not an exact
object match. However, my datagrid is an ArrayCollection. So I took the unique
value from my listbox and just did a while loop through the ArrayCollection and
casting each item to an Object using:
myObject = myArrayCollection.getItemAt(index).
Then I just compared the value from my list box to the unique value in my
ArrayCollection:
if (myObject.myDataValue == myListBoxDataValue)
{
// scroll to the row
datagrid.scrollToIndex(index);
// now highlight the row
datagrid.selectedIndex = index;
}
I didn't need to trigger a mouse click on that row like I thought. In my
datagrid I had a handler for the itemClick event, so I just called that method.
Thanks for the guidance.
Greg