The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am having some difficulty getting a specific row to appear at the top of a griddataboundgrid.
The grid just displays with the row at index position 0 whatever value I set in the code below.
gridCalls.DataSource = DsSchedule1.demand
gridCalls.SetTopRow(50)
Do I need to do something in addition?
ADAdministrator 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
ADAdministrator Syncfusion Team October 18, 2005 01:30 PM UTC