I wouldn't use mx.controls.Text as a headerrenderer. If you need wordwrap, just set wordwrap=true on the DataGridListItemRenderer
--- In [email protected], "sinacapho" <[EMAIL PROTECTED]> wrote: > > Hi, > I have writing a datagrid using the headerrenderer to make some > controls , and also set up the variableRowHeight to true. But find > that when you click on the headerrenderer, the screen freeze and > trigger many redraw action until to click another columns. It work > well in Flex 3 but no on Flex 2. I have attached the source using a > similar example. > can someone help me to fix in Flex2 ? > > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="horizontal"> > <mx:ArrayCollection id="adgData"> > <mx:source> > <mx:Object column1="A" column2="29"/> > <mx:Object column1="a" column2="3"/> > <mx:Object column1="b" column2="9"/> > <mx:Object column1="B" column2="2"/> > <mx:Object column1="c" column2="1"/> > </mx:source> > </mx:ArrayCollection> > <mx:DataGrid id="dg" dataProvider="{adgData}" variableRowHeight="true"> > <mx:columns> > <mx:DataGridColumn headerText="Column 1" > headerRenderer="mx.controls.Text" dataField="column1" /> > <mx:DataGridColumn headerText="Column 2" dataField="column2" /> > </mx:columns> > </mx:DataGrid> > </mx:Application> > > > thx > capho >

