>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.
Yes Mike I got that. That's why I thought it might cause problems. I haven't tested but will test now this situation :
-Filter is set outside of grid (ie: Commandbutton)
-And refresh called
-Grid is somehow (who does it in fact) not a true multipl of rowheight+headerheight+scrollbars (I mean the last row is partially shown)
-User clicks on that partial row.
To me it seems this code would prevent the whole row being showed. Default refresh code (with no doscroll) positions it.
Cetin