What Flex version? On #2, set editable="false" on the non editable columns.
Tracy -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Thursday, April 13, 2006 1:44 PM To: [email protected] Subject: [flexcoders] editable Datagrid + Event Listener I am using an editable datagrid that allows admins to enter a number that is stored in my database. Since flex does have the enter attribute for the datagrid, I wrote a listener to handle the enter key for me. However, I cant figure out how to apply it to my datagrid. Can someone give me a bit of help with this. On another note, is there a way to make only a single column editable. IE making just my % of side column editable? Here is my datagrid. <mx:DataGrid x="10" y="42" editable="true" width="90%" height="400" id="agentDG"> <mx:columns> <mx:DataGridColumn headerText="Agent Name" width="275" dataField="AGENTNAME"/> <mx:DataGridColumn headerText="Transaction Side" width="150" dataField="AGENTSIDE"/> <mx:DataGridColumn headerText="% of Side" width="95" dataField="col3"/> <mx:DataGridColumn headerText="Type" width="175" dataField="AGENTTYPE"/> <mx:DataGridColumn headerText="agentId" visible="false" dataField="AGENTUNAME"/> </mx:columns> </mx:DataGrid> Here is my Listener. stop(); // var loginListener:Object = new Object(); loginListener.onKeyDown = enterLogin; Key.addListener(loginListener); // function percentHandler() { } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

