1 Reply Latest reply on Nov 11, 2008 7:58 AM by Newsgroup_User

    refreshing DataGrid

    Milo[HUN]
      Hi!

      I'm having an AdvancedDataGrid. Some of it's column is editable. I was wondering if have a lot of datas in the grid, and i'd like to change on row of it how can i do that without refreshing the whole grid? I mean there's a way to cast the grid's dataprovider into an ArrayCollection and then call the refresh function like this:
      ArrayCollection(myADG.dataProvider).refresh();
      But by chosing this way it gets me the whole dataProvider refreshed.I'd like to avoid doing this, due to the possibility of having a lot of datas in the grid.
      Is there any way to refresh just one row of a Grid?
      regards,

      Milan
        • 1. Re: refreshing DataGrid
          Level 7

          "Milo[HUN]" <webforumsuser@macromedia.com> wrote in message
          news:gfc8s2$1aq$1@forums.macromedia.com...
          > Hi!
          >
          > I'm having an AdvancedDataGrid. Some of it's column is editable. I was
          > wondering if have a lot of datas in the grid, and i'd like to change on
          > row of
          > it how can i do that without refreshing the whole grid? I mean there's a
          > way to
          > cast the grid's dataprovider into an ArrayCollection and then call the
          > refresh
          > function like this:
          > ArrayCollection(myADG.dataProvider).refresh();
          > But by chosing this way it gets me the whole dataProvider refreshed.I'd
          > like
          > to avoid doing this, due to the possibility of having a lot of datas in
          > the
          > grid.
          > Is there any way to refresh just one row of a Grid?
          > regards,

          Try calling itemUpdated instead of refresh.