Hi all, DataGridColumn is not descendant of UIComponent, thus it does not have "includeInLayout" property.
This issue with incorrect "columnIndex" in ListEvent object inside "itemRollOver" event handler was first reported in 2008, but now it has a status "Deferred". If this issue is important to you, go to JIRA and vote. https://bugs.adobe.com/jira/browse/SDK-17823 -- Best regards, Andriy Panas 2010/1/11 invertedspear <[email protected]> > > > I think, but I'm not sure, that when you set your col0 to be invisible, you > need to also set includedInLayout = true; > ~mike > > > --- In [email protected] <flexcoders%40yahoogroups.com>, > "bhaq1972" <mbha...@...> wrote: > > > > I have an itemRollover event handler in my datagrid. > > > > This datagrid also has some invisble columns (i made them visible=false > during the datagrid's initialize event) > > > > Now if I make col0 invisible, and col1 visible, > > i.e. > > <mx:DataGridColumn dataField="col0" visible="false".. > > <mx:DataGridColumn dataField="col1" visible="true".. > > > > when I try to determine which column i'm rollong over...i'm getting the > wrong value > > public function itemRolloverHandler(e:ListEvent):void > > { > > var myDataField:String = this.columns[e.columnIndex].dataField; > > > > //myDataField="col0" but it should be "col1" as col0 is invsible > > } > > Is there anything I can do so e.columnIndex has the right value? > > > > thanks > > > > >

