Why empty rows are showing in datagrid

View: New views
4 Messages — Rating Filter:   Alert me  

Why empty rows are showing in datagrid

by wwwpl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My datagrid shows alternating colors for rows that are empty (there is
no data for that row).  My dataprovider has only one data item in it.  
Why are the rows showing?


RE: Why empty rows are showing in datagrid

by Alex Harui :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We think it looks better that way.  Otherwise it could be one or two rows followed by one fat colored empty spot

From: flexcoders@... [mailto:flexcoders@...] On Behalf Of wwwpl
Sent: Monday, January 05, 2009 3:05 PM
To: flexcoders@...
Subject: [flexcoders] Why empty rows are showing in datagrid


My datagrid shows alternating colors for rows that are empty (there is
no data for that row). My dataprovider has only one data item in it.
Why are the rows showing?


Re: Why empty rows are showing in datagrid

by ryanerb_14 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




I would like the same feature as the original poster.

Yes, it looks better with continuous alternating rows, however, it could be misleading to the user that there are all these 'extra' rows that don't have text in them, leading them to believe there was some type of load error.  

I think having the option of both continuous, and non continuous would be the best.  Any ideas how to solve the original poster's problem? I would like to know.
Thanks,
Ryan

--- In flexcoders@..., Alex Harui <aharui@...> wrote:

>
> We think it looks better that way.  Otherwise it could be one or two rows followed by one fat colored empty spot
>
> From: flexcoders@... [mailto:flexcoders@...] On Behalf Of wwwpl
> Sent: Monday, January 05, 2009 3:05 PM
> To: flexcoders@...
> Subject: [flexcoders] Why empty rows are showing in datagrid
>
>
> My datagrid shows alternating colors for rows that are empty (there is
> no data for that row). My dataprovider has only one data item in it.
> Why are the rows showing?
>



Parent Message unknown RE: Why empty rows are showing in datagrid

by Alex Harui :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

override drawRowBackground and watch the parameters.  There might be enough info to tell you that you're drawing behind a "non-row"
________________________________
From: Ryan E. [ryanerbstoesser@...]
Sent: Wednesday, November 04, 2009 9:27 PM
To: Alex Harui; flexcoders@...
Subject: Re: Why empty rows are showing in datagrid

Ok, thanks.  I'll have to look into it. If you see any easy way, let me know.

Thanks,
Ryan

On Wed, Nov 4, 2009 at 9:21 PM, Alex Harui <aharui@...<mailto:aharui@...>> wrote:
There might be a way to subclass and get what you want.

________________________________________
From: notify@...<mailto:notify@...> [notify@...<mailto:notify@...>] On Behalf Of ryanerb_14 [ryanerbstoesser@...<mailto:ryanerbstoesser@...>]
Sent: Wednesday, November 04, 2009 6:33 PM
To: Alex Harui
Subject: Re: Why empty rows are showing in datagrid

The continuing row colors misleads the user to think they are valid rows and that there was an error because text is not showing up.  A solid color indicates that the data load is complete, and there is no error.

--- In flexcoders@...<mailto:flexcoders@...>, Alex Harui <aharui@...> wrote:

>
> We think it looks better that way.  Otherwise it could be one or two rows followed by one fat colored empty spot
>
> From: flexcoders@...<mailto:flexcoders@...> [mailto:flexcoders@...<mailto:flexcoders@...>] On Behalf Of wwwpl
> Sent: Monday, January 05, 2009 3:05 PM
> To: flexcoders@...<mailto:flexcoders@...>
> Subject: [flexcoders] Why empty rows are showing in datagrid
>
>
> My datagrid shows alternating colors for rows that are empty (there is
> no data for that row). My dataprovider has only one data item in it.
> Why are the rows showing?
>