The DataGrid cannot be edited line a simpler way to editable= "true" and then simply stop Itemeditbegin to stop Createitemeditor calls
------Solution--------------------Write renderer, renderer can get your point of this cell is the first few lines and columns, according to the row and column change the DataGrid editable attribute, give you a thought: 1. Renderer Monitor click event; 2. The event handler function takes out the row and column index from the Listdatadata and makes a judgment (which row can be edited by using properties to upload to renderer); 3. if (true), set the editable property of the Listdata.owner (or parentdocuemnt) to true, and then place the cursor over the cell that is clicked (set the Editeditemposition property, how to check it yourself); 4. Listen for the Itemeditend event in the DataGrid, the editable function in the event handler is set to false------solution--------------------(validated) think of a simpler way, editable= " True, and then simply stop Itemeditbegin to stop Createitemeditor calls, listen to the Itemeditbegin event code for the DataGrid as follows: Private Function Onitemeditbegin ( Event:datagridevent): void {if (Event.rowindex = = 0)//If is the first line, do not let edit {event.stopimmediatepropagation (); } }