开发者

How to display all rows from an AdvancedDataGrid, without scroll?

开发者 https://www.devze.com 2023-02-27 06:59 出处:网络
I have an Advanceddatagrid that has its variableRowHeight property set to true. I need this AdvancedDataGrid to have its verticalScrollBarPolicy \"off\" also.

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.


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>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号