Tracy, Thank you. Good advise however I should have mentioned it that I already tried doing it with a callLater() from the updateDisplayList method to no avail.
GP --- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote: > > Try running your sizing logic with callLater(). > > > > Tracy > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of graysonpierce > Sent: Friday, January 05, 2007 7:48 PM > To: [email protected] > Subject: [flexcoders] Datagrid auto-resize columns based on data > > > > Hello, > > Thanks to everyone who responded to my previous questions. Extremely > helpful. Here is the latest: > > I have a class that extends datagrid. In it I've added a method that > resized the columns based on calculations of the length of the data > within each column. > > When the datagrid is first displayed the columns are not the correct > size. After it initially appears if I refresh the data (via my own > button), etc. the code fires and resized just fine but the very first > time it does not. > > I've tried unsuccessfully to add various event listeners (such as > Event.COMPLETE) to the datagrid class. Is there some method that I > should be overwriting? > > GP >

