Is there an eay way to cause a Datagrid to scroll (programmatically) so that the last entries in a long list are visible. In MSHFlexgrid I would use the .rowisvisible property but the Datagrid doesn't seem to have this.
Thanks.
Printable View
Is there an eay way to cause a Datagrid to scroll (programmatically) so that the last entries in a long list are visible. In MSHFlexgrid I would use the .rowisvisible property but the Datagrid doesn't seem to have this.
Thanks.
Since datagrid is a bound control you need to navigate the underlying recordset object:
Code:Private Sub Command1_Click()
Adodc1.Recordset.MoveLast
End Sub
Perfect! Thank you. I had assumed doing a refresh on the grid would move to the last record but apparently not. I hardly ever use Datagrids but I needed some "quick-and-dirty" data entry and have never got around to changing it.Quote:
Originally Posted by RhinoBull
Thanks again.
Paul.
You're welcome!
Although it works but I'd recommend to stay away from any kind of bound controls - despite they all are easy to use they can also make your life much harder.