Hi!
In the most simple case recno()/reccount() is enough. If you have changed the order of rows by using index, use ActiveRow of the grid, however it is available only when grid is focused, after 2 readings of that property; in addition, it is slow. If you have deleted records not visible, filter set, etc etc - no way but create special field that will be used to numerate each record, that you can use that field values to display what you want. This is the most generic approach (take a look to the Thread #
526159 Message #
526175 where I just posted an approach of organizing order numbers.)
HTH.
>How can I get the no of row in grid and the total row in grid. eg. 3/10 means current row is 3 and total row is 10.
>
>TIA.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.