3 Replies Latest reply on Dec 5, 2006 11:19 AM by michael_ramirez44

    Columns cut off in DataGrid

    Srihari_Ainumpudi
      Hi,

      I installed realese version of Flex2.0 in machine. I add more than 20 columns to DataGrid, but last column header is been cut off when it is displaying.

      Here is my code snippet in MXML file

      <mx:Canvas width="100%" height="280" autoLayout="true">
      <mx:DataGrid id="gridExample"
      x="10" y="130" width="98%" height="92%"
      dataProvider="{data.row.result}"
      horizontalScrollPolicy="on"
      allowMultipleSelection="false">

      <mx:columns>
      <mx:DataGridColumn headerText="Column1" dataField="Result1"/>
      <mx:DataGridColumn headerText="Column2" dataField="Result2"/>
      <mx:DataGridColumn headerText="Column3" dataField="Result3"/>
      <mx:DataGridColumn headerText="Column4" dataField="Result4"/>
      <mx:DataGridColumn headerText="Column5" dataField="Result5"/>
      <mx:DataGridColumn headerText="Column6" dataField="Result6"/>
      <mx:DataGridColumn headerText="Column7" dataField="Result7"/>
      <mx:DataGridColumn headerText="Column8" dataField="Result8"/>
      <mx:DataGridColumn headerText="Column9" dataField="Result9"/>
      <mx:DataGridColumn headerText="Column10" dataField="Result10"/>
      <mx:DataGridColumn headerText="Column11" dataField="Result11"/>
      <mx:DataGridColumn headerText="Column12" dataField="Result12"/>
      <mx:DataGridColumn headerText="Column13" dataField="Result13"/>
      <mx:DataGridColumn headerText="Column14" dataField="Result14"/>
      <mx:DataGridColumn headerText="Column15" dataField="Result15"/>
      <mx:DataGridColumn headerText="Column16" dataField="Result16"/>
      <mx:DataGridColumn headerText="Column17" dataField="Result17"/>
      <mx:DataGridColumn headerText="Column18" dataField="Result18"/>
      <mx:DataGridColumn headerText="Column19" dataField="Result19"/>
      <mx:DataGridColumn headerText="Column20" dataField="Result20"/>
      <mx:DataGridColumn headerText="Column21" dataField="Result21"/>
      <mx:DataGridColumn headerText="Column22" dataField="Result22"/>
      <mx:DataGridColumn headerText="Column23" dataField="Result23"/>
      <mx:DataGridColumn headerText="Column24" dataField="Result24"/>
      <mx:DataGridColumn headerText="Column25" dataField="Result25"/>

      </mx:columns>
      </mx:DataGrid>
      </mx:Canvas>

      I Changed the width of last column in ActionScript file still it is not working

      Any help is appreciated

      SriHari.