1

I have an Advanceddatagrid that has its variableRowHeight property set to true. I need this AdvancedDataGrid to have its verticalScrollBarPolicy "off" also.

How can I show all rows in that AdvancedADataGrid? (Need to set its height in a so manner that it will be visible all its rows).

Thanks.

Jason Towne
  • 8,014
  • 5
  • 54
  • 69
artaxerxe
  • 6,281
  • 21
  • 68
  • 106

1 Answers1

0

Assuming the container your DataGrid is in is tall enough to fit all of the rows, you can set the rowCount property to the number of records in your dataProvider. This will show all of the returned rows with no scroll bar.

<mx:DataGrid dataProvider="{myDataProvider}" rowCount="{myDataProvider.length}">
  <mx:columns>
    Your columns go here...
  </mx:columns>
</mx:DataGrid>
Jason Towne
  • 8,014
  • 5
  • 54
  • 69
  • But my grid needs to have set the variableRowHeight property to true, so your suggestion doesn't work! I have already tried it. – artaxerxe Apr 22 '11 at 05:25