I tried setting the rowCount equal to dataprovider.length. (not length+1, as
header also counted in rowCount, so length will actually be a row less thn
the dataprovider's length.)

But it doesn't work and give me the same result.

Any other way to get the required result??

Thanks.


Alex Harui wrote:
> 
> I think there's a known issue with DG where it does that.  What happens
> if you subtract one before setting rowCount?
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Manu Dhanda
> Sent: Monday, August 18, 2008 6:33 PM
> To: [email protected]
> Subject: Re[flexcoders] moving DataGrid's last(empty) row
> 
>  
> 
> 
> Hii,
> 
> How can I remove the last row from a dataGrid, that is added by default
> and
> have no data.
> Actually, am working on a custom component (a simple calendar) and based
> on
> the month, I need to show only 5(OR 6) rows. But, default DataGrid
> behavior
> always add one additional row to it i.e. 6(OR 7) correspondingly.
> 
> Can anyone point me to the exact solution for this issue.
> 
> Thanks.
> -- 
> View this message in context:
> http://www.nabble.com/Removing-DataGrid%27s-last%28empty%29-row-tp190426
> 45p19042645.html
> <http://www.nabble.com/Removing-DataGrid%27s-last%28empty%29-row-tp19042
> 645p19042645.html> 
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Removing-DataGrid%27s-last%28empty%29-row-tp19042645p19053858.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to