Some folks have had success with a dummy column as the last column.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of bhaq1972
Sent: Friday, August 07, 2009 4:28 AM
To: [email protected]
Subject: [flexcoders] Re: DataGridColumn widths not correct when Datgrid 
horizontalScrollPolicy=auto



Hi Alex,

> DataGrid doesn't leave empty space on the right of the last column. >It 
> always stretches the last column to the right edge.

Hmm.. that's not ideal for me. My last 2 columns have Image itemRenderers. For 
look and feel purposes, the column should be the same widths.

It would be the same scenario if the itemRenderers were CheckBoxes (centre 
aligned) ...you wouldn't want one column looking bigger than the other.

Apart moving these 2 columns from the end to some where in the middle, is there 
a workaround for this?

Thanks for your help and knowledge.

regards
bod

--- In [email protected]<mailto:flexcoders%40yahoogroups.com>, Alex 
Harui <aha...@...> wrote:
>
> DataGrid doesn't leave empty space on the right of the last column. It always 
> stretches the last column to the right edge.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
>
> From: [email protected]<mailto:flexcoders%40yahoogroups.com> 
> [mailto:[email protected]<mailto:flexcoders%40yahoogroups.com>] On 
> Behalf Of bhaq1972
> Sent: Thursday, August 06, 2009 8:17 AM
> To: [email protected]<mailto:flexcoders%40yahoogroups.com>
> Subject: [flexcoders] DataGridColumn widths not correct when Datgrid 
> horizontalScrollPolicy=auto
>
>
>
> Hi List
>
> When DataGrid horizontalScrollPolicy="auto", the DatagridColumn widths are 
> not correct.
> When I scroll right(on the dg horizontalscroll bar).
>
> I can see my last 2 columns are not the same width (eventhough i set them 
> both to 20).
>
> When horizontalScrollPolicy=off .....both widths are the same
>
> What am I missing?
> Any ideas?
>
> regards
> bod
>

Reply via email to