I did this years ago (I think it was VFP3). I simply added a field to the cursor that populated the grid and after it was ordered I replaced the value of the field with the correct number. If I remember correctly I used a scan/endscan with a numeric variable. The down side is that it has to be re-numbered every time you reorder the cursor or view or add or delete a record.
HTH
Barbara
>Has anyone been able to number the rows in a grid and show this in the first column of the grid? It would also have to stay in numeric order, 1,2,3... if you sort the grid by other columns.
>
>Always wanting more!
>Thanks!
>Colombo.