4 Replies Latest reply on Jul 31, 2007 7:26 PM by ntsiii

    Visible="false" not working correctly...

      I have the following datagrid whose dataProvider is an Object (returned PHP array). That works fine. The problem occurs when I try to hide a column with visible="false". The column is hidden before I load the data into the datagrid, but as soon as the bound dataProvider is updated (data is sent to it), the column reappears on the far right.

      Here's the code:

      <mx:DataGrid id="dgModifs" width="100%" height="100%" dataProvider="{oFetchedModifs}" wordWrap="true" variableRowHeight="true" change="loadModif()">
      <mx:DataGridColumn headerText="Thème" dataField="theme" width="52" resizable="false"/>
      <mx:DataGridColumn headerText="Séquence" dataField="sequence" width="68" resizable="false"/>
      <mx:DataGridColumn headerText="Action demandée" dataField="action"/>
      <mx:DataGridColumn dataField="recette_date" visible="false"/>

      dataProvider="{oFetchedModifs}" is equal to event.result (from a webobject as an Object).

      Any suggestions?