Do you have any dataprovider?
Yes i have dataprovider
that is ArrayCollection.
In my point of view, the dataGrid only represents the data in the dataProvider.
Make sure that your array doesen't has any extra line or try to trace the lenght of the array so you can see if the problem is coming from the array...
If i remove 'height' property from datagrid then it works perfectly, there is no blank row in my ArrayCollection
If you remove the Height property value, the component is going to be resized with your data.
I mean that the height if the component is going to be as high as the number of records of your array.
Try to add more records to your array to see what happens with the fixed height.
First of all i am calculating toal data row height and then adding dg header height. if total is less then current height then i am setting datagrid height = calculated height else setting static height.
The issue only comes when Datagrid needs vertical scrollbar to display all data.
Well, try to post your code here. Maybe someone can help you.
For performance reasons, the DG measures the first data item and multiplies
by rowCount and that becomes the height of the DataGrid, even if
variableRowHeight=true. We will not take the time to measure more than one
If you want an exact fit DG, call measuredHeightOfItems and add
viewMetrics.top and bottom.