Private Sub setUserList()
Me.UsersTableAdapter.Fill(Me.MSDataSet.Users)
Dim filtExp As String
filtExp = "GroupID =" & GID
Dim dr As DataRow()
Dim dt As New DataTable()
dt = New DataTable()
dt = MSDataSet.Users.Clone
dr = Me.MSDataSet.Users.Select(filtExp)
Dim a As Integer
For a = 0 To dr.GetUpperBound(0) Step 1
dt.Rows.Add(dr(a))
Next
Me.UsersTableAdapter.Fill(dt)
End Sub
Me.UsersTableAdapter.Fill(Me.MSDataSet.Users)
Dim filtExp As String
filtExp = "GroupID =" & GID
Dim dr As DataRow()
Dim dt As New DataTable()
dt = New DataTable()
dt = MSDataSet.Users.Clone
dr = Me.MSDataSet.Users.Select(filtExp)
Dim a As Integer
For a = 0 To dr.GetUpperBound(0) Step 1
dt.Rows.Add(dr(a))
Next
Me.UsersTableAdapter.Fill(dt)
End Sub