Flex 4.5(Hero)s:Datagrid RowCount

Okay, just stick to this.

I used rowcount in the previous mx.datagrid

Now, Using “s: datagrid”, I tried to use requesteMaxRowCount and RequestMinRowCount (in despair mode: /)
The data grid is displayed as 2 rows, even though my data set has only one row, and
requestedMaxRowCount = 1;

—Edit—

arrBranches is an ArrayCollection

if (arrBranches.length> 0){
dgBranches.requestedMaxRowCount = arrBranches.length;
dgBranches.dataProvider = arrBranches;
dgBranches.visible = true;
arrBranches.refresh();
}

—End of edit—

—The second edit—

This is impossible…

dgBranches.rowCount = arrBranches.length

pre>

– End of editing –

I have no height, top or bottom, defined...
How to set the visible line to only one line (not the title of course)
Paul Ans

You need to set the minHeight property of the DataGrid to "0" or any content less than the height of the header.

The default minHeight is enough to display more than 2 lines, so your question.

Ok, just stick with it.

I used rowcount in the previous mx.datagrid

Now, using "s:datagrid", I try to use requesteMaxRowCount and RequestMinRowCount (in despair mode: /)< br>The data grid is displayed as 2 rows, even if I The data set has only one row, and
requestedMaxRowCount = 1;

—Edit—

arrBranches is an ArrayCollection

if (arrBranches.length> 0){
dgBranches.requestedMaxRowCount = arrBranches.length;
dgBranches.dataProvider = arrBranches;
dgBranches.visible = true;
arrBranches.refresh();
}

—The end of editing—

—The second edit—

This is impossible...

dgBranches.rowCount = arrBranches.length

– End of editing –

I have no height, top or bottom, defined...
How to be visible The row is set to only one row (of course not the header)
Paul Ans

You need to set the minHeight property of the DataGrid to "0" or less than the header height Any content.

The default minHeight is enough to display more than 2 lines, so your question.

Leave a Comment

Your email address will not be published.