単一の顧客がグリッドに表示されるたびに、DataGrid (gridActivePlayers) の行全体を選択しようとしています。これが私の方法です。「For Each」ループに問題があります。
Private Sub CustomerBindingSource_PositionChanged(sender As Object, e As EventArgs) Handles CustomerBindingSource.PositionChanged
Dim drvCustomer As DataRowView = CType(Me.CustomerBindingSource.Current, DataRowView)
Dim selCustomer As Integer = drvCustomer.Item("CustomerID")
ActivePlayersBindingSource.Position = Me.ActivePlayersBindingSource.Find("CustomerID", selCustomer)
' Here is what I need to implement
For Each
MsgBox(1)
Next
End Sub