How is your edit button embedded in the column, are you using a Cell Renderer? When I have done something similar using a CellRenderer I made the CellRenderer dispatch an event (actually from the Datagrid), which contained the cell's row and column. This way in my class containing the Datagrid, I could just listen for my event just like any other (like "cellEdit", "headerRelease" etc).

Below is the appropriate line from my CellRenderer. I believe the template for this CellRenderer was just from the Macromedia multiline textfield sample.

listOwner.dispatchEvent({type:"myCustomEvent",
                               itemIndex: getCellIndex().itemIndex,
                               columnIndex: getCellIndex().columnIndex,
                               newValue: somethingGoesHere});

Regards,
Grant Cox


[EMAIL PROTECTED] wrote:

hi,
I have a datagrid that I'm using to display records. One of the columns has an "edit" button. When the user clicks edit, the window pops up. What I'd like to do is when a user clicks edit, one of the columns is set to "selected". I mean to ask that how can i select the whole column for display,so that rest of the columns i can make invisible. Does anyone know if this is possible and how to do this. Greatly appreciate any help... The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s)and may contain confidential or privileged information. If you are not the intended recipient, please notify the sender or [EMAIL PROTECTED]
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to