How did it get set to 0?  Maybe that code runs after you set it to 5.

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of candysmate
Sent: Monday, September 24, 2007 12:05 PM
To: [email protected]
Subject: [flexcoders] Setting dataGrid selectedIndex.

 

I need to change tabNavigator tabs automagically for the user and then
set the selectedIndex of the dataGrid which resides on the tab to a
variable value.

My code is:

adviceTabNav.selectedIndex = 1;
dGrid.selectedIndex = x;

x is a Number, and currently set to 5.

The tab changes OK, but the grid highlight never moves from the
default 0 top position.

?

 

Reply via email to