You need to listen for the collection change event and there you can do
something like this --
var dataGridSelectedIndex:int = dataGrid.selectedIndex; (store it before the
datagrid refreshes.)
// dataGrid.executeBindings();
dataGrid.selectedIndex = dataGridSelectedIndex;
dataGrid.scrollToIndex(dataGridSelectedIndex);
-V
On Tue, Jan 25, 2011 at 5:32 AM, Pavan B <[email protected]> wrote:
> how to highlight the selected row in datagrid when the dataprovider or the
> collection binded to it changes.
>
> --
> Thanks
> Pavan
> 814-431-0669
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.