1 Reply Latest reply on Apr 6, 2012 6:02 AM by Vibhuti Gosavi(InfoCepts)

    How to get selected Cell value in datagrid?

    jerry98225 Level 1

      Hi guys, I have a datagrid that is editable. I was wondering if it's possible to retreive the cell value after user edits the single cell.

       

      My datagrid will trigger griditemEditorSessionSave event if users finish the editing, but I don't know how to get the new cell value.

       

       

      //script

      protected function dg_gridItemEditorSessionSaveHandler(event:GridItemEditorEvent):void

                                    {

           //I can only get the columnIndex but not the value

            Alert.show (event.columnIndex);

       

        }

       

      //mxml

       

      <s:DataGrid id="dg" editable="true" x="5" y="3" width="734" height="153"

                        gridItemEditorSessionSave="dg_gridItemEditorSessionSaveHandler(event)"

      >

      ....

      .....

       

      </Datagrid>

       

      Any thoughts? Thanks a lot.