3 Replies Latest reply on Aug 18, 2011 6:50 AM by ouvigna

    AdvancedDataGrid  lockedColumnCount Error.

    Derrick He

      Hi

      Flex Version: Flash Builder 4.0.1, SDK 4.1.0

      <s:CheckBox id="checkBox" label="CheckBox"/>
              <mx:AdvancedDataGrid lockedColumnCount="1" horizontalScrollPolicy="on">
                  <mx:groupedColumns>
                      <mx:AdvancedDataGridColumnGroup headerText="Group"> 
                          <mx:AdvancedDataGridColumn headerText="A" id="dgc_a" dataField="a" visible="{checkBox.selected}"/>
                          <mx:AdvancedDataGridColumn headerText="B" dataField="b" />
                          <mx:AdvancedDataGridColumn headerText="C" dataField="c"/>
                      </mx:AdvancedDataGridColumnGroup>   
                      <mx:AdvancedDataGridColumn headerText="D" dataField="d"/>
                      <mx:AdvancedDataGridColumn headerText="E" dataField="e"/>
                      <mx:AdvancedDataGridColumn headerText="F" dataField="f"/>
                      <mx:AdvancedDataGridColumn headerText="G" dataField="g"/>
                      <mx:AdvancedDataGridColumn headerText="H" dataField="h"/>
      
                          ...
      
                          ...(More Columns)
                  </mx:groupedColumns>
              </mx:AdvancedDataGrid>
      

       

      When the cloumn "A" set visible = 'false', and scrolling the ADG's horizontalScroll Bar.

      The column "C" row data will be lost. How to fix the problem? Thank you!