Skip to content

Instantly share code, notes, and snippets.

@lukesh
Created December 2, 2009 20:38
Show Gist options
  • Save lukesh/247548 to your computer and use it in GitHub Desktop.
Save lukesh/247548 to your computer and use it in GitHub Desktop.
private function handleItemDoubleClick(event:ListEvent):void
{
var dg:DataGrid = DataGrid(event.target);
dg.editable = true;
dg.editedItemPosition = event; // { rowIndex: event.rowIndex, columnIndex: event.columnIndex };
}
private function handleItemEditEnd(event:DataGridEvent):void
{
var dg:DataGrid = DataGrid(event.target);
dg.editable = false;
}
<mx:DataGrid
doubleClickEnabled="true"
itemDoubleClick="handleItemDoubleClick(event)"
itemEditEnd="handleItemEditEnd(event)"
>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment