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 flexcoders@yahoogroups.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 >