Well, this wasn't nearly as hard as I thought.  Realized I could probably do
it with a an event and this is what I came up with:

private function renameItem():void
{
 grid.editable = true;
 grid.addEventListener(DataGridEvent.ITEM_EDIT_BEGIN, itemEditBegin);
 var de:DataGridEvent = new DataGridEvent(DataGridEvent.ITEM_EDIT_BEGINNING,
false, false, 1, null, grid.selectedIndex);
 grid.dispatchEvent(de);
}

private function itemEditBegin(e:DataGridEvent):void
{
 grid.editable = false;
}


On 12/18/06, Pan Troglodytes <[EMAIL PROTECTED]> wrote:

How can I create a button click event that will start editing of the
selected grid column?  I want to have a "rename" button for clarity (for
those users who won't guess to click on the item to rename it).

--
Jason




--
Jason

Reply via email to