>Hi Cetin,
>
>>If I'm not wrong this code would beat some functionality of positioning row correctly in a grid. Hope I'm wrong.
>
>Here's an example:
>
>Your grid is taking up the whol 600x800 or whatever screen. You're only shoing 5 records and your on the first record. If you reOrder the grid (header click ect.) You may see only the one record and about 50 blank rows, then you'll have to scroll up.
>
>My code only affects the grid if more visible (blank or not) rows are available then actaul number of records being displayed. Otherwise the DoScroll isn't touched.
Mike,
Tested. Grid shows about 3 and a half rows. Filter return 4 records. You can't see that last row with mouse or keyboard (except click scrollbar).
Cetin