Set the TopRow Property to the row number of the selected row.


You can use this property to programmatically read or set the visible top row of the MSHFlexGrid. Use the LeftCol property to determine the leftmost visible column in the MSHFlexGrid.

The largest row number that you can use when setting TopRow is the total number of rows minus the number of rows that are visible in the MSHFlexGrid. If this property is set to a greater row number, the MSHFlexGrid will reset it to this largest possible value.


This is quoted from the MSDN Library.