0 Replies Latest reply on Jun 1, 2006 2:16 PM by Newsgroup_User

    Selecting and Navigating to a row in DataGrid

    Level 7
      In Flash MX 2004

      I would like to have a row selected after the DataGrid has been populated.
      Much like a list box <select> in html, I would like to make one row
      "selected". It must be navigated to to visually indicate the selection.

      However, the focusedCell property does not work when dg.editable=false

      So, I set the dg.editable=true, set the focusedCell to the appropriate row
      and cell then set the dg.editable=false. But this left the chosen cell in an
      editable (textbox) state that you would have to click out of in order to see
      all the contents of that cell. Ugly.

      With the fine suggestion of DMennenoh, I used the .selectedIndex property to
      choose the selected row, but, although the item is in fact selected, the
      datagrid does not navigate to the selected field. It stays on the first row.
      You must scroll through the list to see the selected row.

      Is there a way to progarmmatically choose and navigate to a row in a
      DataGrid without this effect?