Anshuman Jaiswal
Anshuman Jaiswal

Reputation: 5462

How to get row index or column index on right click in datagrid

I want to add/delete row from datagrid when a user right click within the data grid but actually i am unable to get the row index(or column index or selectedIndex) .Any one ??

Upvotes: 3

Views: 1450

Answers (1)

Nidhi
Nidhi

Reputation: 785

Try this DataGrid =>

itemRollOver="updateMenu(event.rowIndex)" private function updateMenu(index:Number):void { trace("row index"+index) }

Upvotes: 1

Related Questions