B
Bernie Hunt
I'm having trouble getting rowfiltering to work on my dataview. I have
two dataviews, one with a list of shows (dvAllShows) and the other with a
list of shows attended by a person(dvAttendedShows). I want to walk
through all the possible shows, checking if the person attended that
show, by seeing if there is a record that contains that ShowID.
For Each drAllShows In dvAllShows.Table.Rows
filterString = "Show = '" & CStr(drAllShows("ShowID")) & "'"
dvAttendedShows.RowFilter = filterString
If dvAttendedShows.Table.Rows.Count = 1 Then
clbAttendeeShows.Items.Add(drAllShows("ShowName"), True)
Else
clbAttendeeShows.Items.Add(drAllShows("ShowName"), False)
End If
Next
The Show and ShowID columns are integers, but using '' around the value
or not produces the same not working solution.
Each time the RowFilter line is executed, all the rows in dvAttended stay
exposed.
Any suggestions?
Thanks,
Bernie
two dataviews, one with a list of shows (dvAllShows) and the other with a
list of shows attended by a person(dvAttendedShows). I want to walk
through all the possible shows, checking if the person attended that
show, by seeing if there is a record that contains that ShowID.
For Each drAllShows In dvAllShows.Table.Rows
filterString = "Show = '" & CStr(drAllShows("ShowID")) & "'"
dvAttendedShows.RowFilter = filterString
If dvAttendedShows.Table.Rows.Count = 1 Then
clbAttendeeShows.Items.Add(drAllShows("ShowName"), True)
Else
clbAttendeeShows.Items.Add(drAllShows("ShowName"), False)
End If
Next
The Show and ShowID columns are integers, but using '' around the value
or not produces the same not working solution.
Each time the RowFilter line is executed, all the rows in dvAttended stay
exposed.
Any suggestions?
Thanks,
Bernie