1 Reply Latest reply on Mar 20, 2007 1:08 PM by ntsiii

    Refreshing/Updating  Data Grid

    Anti-Girl Level 1
      When u click the DATA tab in my app. this code loads.

      <mx:DataGrid id="Datareg" x="10" y="28" dataProvider="{reg.lastResult.users.user}" width="578" height="277" draggableColumns="false" creationComplete="reg.send()">
      <mx:DataGridColumn headerText="User ID" dataField="userid"/>
      <mx:DataGridColumn headerText="UserName" dataField="username"/>
      <mx:DataGridColumn headerText="Answer" dataField="answ"/>


      basically when i click DATA tab again, the datagrid doesnt load again.
      only works when i refresh the WHOLE APPLICATION.

      please help
        • 1. Re: Refreshing/Updating  Data Grid
          ntsiii Level 3
          What is the dataType of the dataProvider?

          How do you know that the data is being returned from the dataService?

          Are you changing the data between loads? If not, how do you know that the grid is not refreshing?

          I advise against binding directly to the lastResult. It is too hard to debug. Use a result handler.