I have these four methods to change the position in a table. However when I invoke any of them nothing appears to happen to the table. It doesn't scroll. The selector pointer doesn't move. Nada!!
If I check the row in the table (DataTable2), it IS changing as it should and the DGV IS bound to the data table.
Private Sub cmdFirst_Click( ByVal eventSender As System.Object, ByVal eventArgs As System.EventArg s) Handles cmdFirst.Click
BindingContext( MyDataSet.Table s("DataTable2") ).Position = 0
End Sub
Private Sub cmdLast_Click(B yVal eventSender As System.Object, ByVal eventArgs As System.EventArg s) Handles cmdLast.Click
BindingContext( MyDataSet.Table s("DataTable2") ).Position = MyDataSet.Table s("DataTable2") .Rows.Count
End Sub
Private Sub cmdNext_Click(B yVal eventSender As System.Object, ByVal eventArgs As System.EventArg s) Handles cmdNext.Click
If BindingContext( MyDataSet.Table s("DataTable2") ).Position < MyDataSet.Table s("DataTable2") .Rows.Count Then
BindingContext( MyDataSet.Table s("DataTable2") ).Position += 1
End If
End Sub
Private Sub cmdPrevious_Cli ck(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArg s) Handles cmdPrevious.Cli ck
If BindingContext( MyDataSet.Table s("DataTable2") ).Position > 0 Then
BindingContext( MyDataSet.Table s("DataTable2") ).Position -= 1
End If
End Sub