Thanks for the help everyone. Yes - that's correct - I always want the index to start with "1" post-filtering....
--- In [email protected], "rueter007" <rueter...@...> wrote: > > Finding the index of an item in a dataprovider will not work if he is > using filters. I think he wanted to always show the correct row number > (starting with 1) even after filtering the data. What Alex mentioned > is the right approach for this problem. > > > --- In [email protected], "Amy" <amyblankenship@> wrote: > > > > --- In [email protected], Alex Harui <aharui@> wrote: > > > > > > Try something like: > > > > > > Public class MyIndexItemRenderer extends DataGridItemRenderer > > > { > > > Override public function validateProperties():void > > > { > > > super.validateProperties(); > > > text =(listData.rowIndex + DataGrid > > (owner).verticalScrollPosition).toString(); > > > } > > > } > > > > There's also a working example of a slightly different approach here > > http://flexdiary.blogspot.com/2007/11/showing-item-number-in- > > itemrenderer.html > > >

