3 Replies Latest reply on Oct 27, 2010 10:25 PM by welcomecan

    datagrid refresh problem?

    welcomecan Level 1

      fileListArray.refresh();
      dg_curtainmanager.invalidateList();
      dg_curtainmanager.invalidateDisplayList();

       

       

       

      <mx:DataGrid id="dg_curtainmanager" showHeaders="true"  editable="true"  includeInLayout="false" dataProvider="{fileListArray}"  creationComplete=""  variableRowHeight="true"   wordWrap="true"  rowCount="{fileListArray.length}"  width="100%"  >

       

      <mx:DataGridColumn  headerText="Parent Folder"  sortable="true"  editable="false"   width="250" minWidth="65" wordWrap="true" >
                              <mx:itemRenderer>
                                 
                                  <fx:Component>
                                      <mx:HBox width="100%"
                                               horizontalAlign="left" verticalAlign="middle">
                                <mx:Image source="@Embed(source='images/edit_16.gif')"  toolTip="Select Starting Folder" buttonMode="true" click="outerDocument.parentfolderimagclick()" />
                                          <mx:Label text="{data.document_folder_name}" color="black" />   
                                      </mx:HBox>
                                  </fx:Component>
                                 
                              </mx:itemRenderer>
                              </mx:DataGridColumn>

       

      </mx:DataGrid>