开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜