Expand my Community achievements bar.

Flex Datagrid Selected Row

Avatar

Level 2
Hi all,



I have a problem. pls help me. I have a Datagrid. I am using
ItemRenderer for displaying an image. Based on user interaction
that image should be changed. Now I can change the image. But it is
affecting the whole datagrid clolumn which contains the
itemrenderer.



I have to change only the selected row's image. How can I
access selected row Itemrenderer?

Pls help me soon.



Thanks in advance
1 Reply

Avatar

Level 3
private function itemClickEvent(event:ListEvent):void {

trace(event.columnIndex);

trace(event.rowIndex);

}

<mx:DataGrid id="myGrid" width="350" height="150"

itemClick="itemClickEvent(event);" />