hi i found this code in this forum, can someone tell me how to use in my code, i meant how to call it when i want my datagrid to scroll?
thanks
Public Class MyDataGrid
Inherits DataGrid
Public 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
thanks
Public Class MyDataGrid
Inherits DataGrid
Public 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