2 Replies Latest reply on Mar 7, 2009 10:44 PM by RUSH-ME

    how to address to combobox in datagrid

    Uzztrizzo
      I have DataGrid
      In my DataGrid I have a columns and their ItemRenderers are comboBoxes.
      So how can I ask any of my comboBoxes for selectedIndex outside from datagrid? I need to call any row and any column, for example : hey you the itemrenderer from row 3 and column 5 tell me what is your combobox selected index.
        • 1. Re: how to address to combobox in datagrid
          Level 7

          "Uzztrizzo" <webforumsuser@macromedia.com> wrote in message
          news:gors55$gth$1@forums.macromedia.com...
          >I have DataGrid
          > In my DataGrid I have a columns and their ItemRenderers are comboBoxes.
          > So how can I ask any of my comboBoxes for selectedIndex outside from
          > datagrid? I need to call any row and any column, for example : hey you the
          > itemrenderer from row 3 and column 5 tell me what is your combobox
          > selected
          > index.

          Set a property on the object that's being rendered based on what the
          combobox selected and look at that.


          • 2. Re: how to address to combobox in datagrid
            RUSH-ME Level 3
            Hi

            You can use the combobox as itemrenderer and also itemeditor. Datagrid fires an itemedit event. Use that one to get the respective combobox's selectedIndex.

            Hope this helps.