I needed to do this after insert in a sorted grid... for (x=0; x<dgItems.dataProvider.length && [EMAIL PROTECTED] != [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> ; x++);
otherwise the selectedIndex property should tell you. HTH --- In flexcoders@yahoogroups.com, "Steven Lira" <[EMAIL PROTECTED]> wrote: > > I'm trying to find the index of the row in a datagrid which is the > first visible row. ex. If there are 100 rows but only 15 are visible at > any given time, I want to know what the index is of first visible row > presented in the window. If the window is scrolled down half way, I > should find that the index of the first visible row is 50 (or something > like that). > > Someone mentioned using listData but it is null. > > I also need to know what the total number of rows are. > > Thanks, > Steve >