The DataGrid will show as many rows as it can given its height and rowHeight. Any room left over will be a partial row. There are scenarios where the partial row is one or two pixels shorter than a full row, but looks like a full row.
Setting listContent.height probably won't solve the problem as it will get reset later. There is a formula, more or less for setting the height of the DG so it has a full set of rows, top to bottom (assuming variableRowHeight=false). It is dg.height = rowCount * rowHeight + dg.viewMetrics.top _ dg.viewMetrics.bottom. If the header height is different from the rowHeight then you'll have to subtract one rowHeight and add in headerHeight. -Alex ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of arpan srivastava Sent: Thursday, November 16, 2006 7:16 PM To: Flex Components Subject: [flexcomponents] extra empty row comes at the bottom in data grid Hi, My application has a datagrid inside a panel which gets populated from a XML. Everything works fine but when I resize the browser window,I change the rowheight to make the grid bigger but, then when I scroll for the last row one extra empty row comes at the bottom.I have also overrided configureScrollBars() function and inside it i have written: this.listContent.height = rowHeight * rowCount; it is still not working. Please help. Thanks
