Ok, just going nuts with this one.
I used rowcount, in my previous mx.datagrid
Now, with "s:datagrid", I've tried to use requesteMaxRowCount, and RequestMinRowCount (in desperation mode :/ )
The datagrid appear with 2 lines, even when my dataset only has ONE row, and
requestedMaxRowCount = 1;
---edited ---
arrBranches is an ArrayCollection
if (arrBranches.length > 0){
dgBranches.requestedMaxRowCount = arrBranches.length;
dgBranches.dataProvider = arrBranches;
dgBranches.visible = true;
arrBranches.refresh();
}
--- edited end---
--- 2nd edit ---
this is not possible anymore...
dgBranches.rowCount = arrBranches.length
-- Edit end --
I have no height, top, or bottom, defined... how to set the visible rows to only One row (other than header, of course) Paulo Ans