http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q895q
5.59 How do I programmatically scroll the datagrid to a particular
row?
The DataGrid has a protected GridVScrolled member that can be used to
scroll the grid. To use it, you can derive from DataGrid and add a
ScrollToRow method. Here is a code snippet.
Public Class MyDataGrid
Inherits DataGrid
Sub ScrollToRow(ByVal row As Integer)
If Not Me.DataSource Is Nothing Then
Me.GridVScrolled(Me, New
ScrollEventArgs(ScrollEventType.LargeIncrement, row))
End If
End Sub
End Class
This solution uses information provided by Daniel Herling (MS) in the
microsoft.public.dotnet.framework.windowsforms.dat abinding newsgroup.
--
Greetz,
Jan
__________________________________
Read my weblog:
http://weblogs.asp.net/jan
"Eyal" <li******@yahoo.com> schreef in bericht
news:02****************************@phx.gbl...
Hello,
i have a datafrid with more rows then can be seen in it,i
know how to select the row with the 'currentRowIndex' but
it doesnt move the row into the visible section ,can
anyone help me with how to make the selected row come
into display in the datagrid visible rows (scrolling).
thank u
Eyal