1

我正在使用 AdvancedDataGrid,其行数动态变化。我想根据显示的行数调整网格高度。谁能帮我解决这个问题。

4

2 回答 2

0

This is a dupe of flex datagrid - making grid height dynamic and component that contains it, and I answer the question more fully over there. Short version: the rowCount property controls the height of the DataGrid control.

于 2011-04-19T23:09:18.843 回答
0

我不确定你在问什么......请举个例子。您希望网格随着行数的增加而不断变高?这是为了避免滚动条吗?在你停下来之前,你希望它有多高?您是否希望它是 1:1(高度 = numberOfRows * heightOfOneRow)?

如果您稍微详细说明一下,听起来您的要求应该非常简单。

于 2009-12-15T05:23:17.600 回答