Created
August 1, 2014 15:54
-
-
Save pzelnip/2254bb8271f6d8027d5f to your computer and use it in GitHub Desktop.
Conditional Datagrid cell editing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function disableEditing(event:DataGridEvent):void { | |
if(event.columnIndex == 1 && event.rowIndex == 0) | |
{ | |
event.preventDefault(); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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