Skip to content

Instantly share code, notes, and snippets.

@pzelnip
Created August 1, 2014 15:54
Show Gist options
  • Save pzelnip/2254bb8271f6d8027d5f to your computer and use it in GitHub Desktop.
Save pzelnip/2254bb8271f6d8027d5f to your computer and use it in GitHub Desktop.
Conditional Datagrid cell editing
private function disableEditing(event:DataGridEvent):void {
if(event.columnIndex == 1 && event.rowIndex == 0)
{
event.preventDefault();
}
}
<mx:DataGrid id="myGrid"
editable="true"
itemEditBeginning="disableEditing(event)">
<!-- definition of columns & such here -->
</mx:DataGrid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment