AD
Administrator
Syncfusion Team
October 18, 2005 07:58 AM UTC
Are you trying to do this in Form.Load before the grid is displayed? If so, before the initial display, a ListChanged.Reset event is raised for a DataTable DataSource, and this is causing the toprow to reset.
One way around this is to set a timer at the bottom of Form.Load to raise an event slightly later so you can reset the TopRowIndex after the ListChanged.Reset event has been handled.
''at bottom of form.load
Dim t As New Timer()
t.Interval = 1
AddHandler t.Tick, AddressOf t_Tick
t.Start()
''the handler
Private Sub t_Tick(sender As Object, e As EventArgs)
Dim t As Timer = sender ''
t.Stop()
t.Dispose()
t = Nothing
Me.gridDataBoundGrid1.SetTopRow(50)
End Sub ''t_Tick
AD
Administrator
Syncfusion Team
October 18, 2005 01:30 PM UTC
That was it.
Thanks Clay.