Hi,
What do you meant by index of row?
When you select a record in grid, VFP actually move the record pointer to the cursor/table set in you r grid.recordsource. Therefore, you can access the record directly using mytable.fieldname. It will return you the value of current selected row in you grid.
HTH
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...