[flexcoders] Re: Finding Width of a DataGrid Column Dynamically / Super Header Text

2006-04-04 Thread jameskeepnews
Thanks, Jeremy -- I am aware of DataGridColumns, which is where we're tracking those widths, and I understand what you're describing in principle. It's the practice I'm looking for... :} Could you (or someone) provide me with a snippet of code as an example? Obliged, jk --- In

[flexcoders] Re: Finding Width of a DataGrid Column Dynamically / Super Header Text

2006-04-04 Thread shweta_parekh
Hi, I think if you say dg.getColumnAt(a).width will give the width of the column at index a in the datagrid. dg being the id of the datagrid. Hope this helps. -Shweta --- In flexcoders@yahoogroups.com, jameskeepnews [EMAIL PROTECTED] wrote: Thanks, Jeremy -- I am aware of

[flexcoders] Re: Finding Width of a DataGrid Column Dynamically / Super Header Text

2006-04-04 Thread jameskeepnews
And thank you, Shweta -- I saw the Macromedia sample on their site that return ciolumn width, with this syntax you suggest below. However, when I try to utilize it, I get this compile error in Eclipse (running Flex 2.0 Beta 2): Call to a possibly undefined method 'getColumnAt' through a

Re: [flexcoders] Re: Finding Width of a DataGrid Column Dynamically / Super Header Text

2006-04-04 Thread jeremy lu
datagrid.getItemAt() is gone, use following: for(ver i:int=0;idg.columns.length;i++){ trace(dg.columns[i].width); } you will get each column's width (and lot of other properties). note: what dg.columns[i] returns is of DataGridColumn type, check it in the manual for other props/methods.