J
Jim Heavey
I thought after I set the "RowFilter" property on a dataview, that if I then
interated through the view, that I would only see those rows which met the row
filter. I am not finding that to be the case. I am putting values in the
rowfilter that I know are not present, yet when I iterate through the
dataview, I see all rows. What am I doing wrong?
The second question has to do with RowFilterState. If I want to see the
modified version of all rows, but not deleted, and all rows which have never
been modified what is the proper setting for the RowFilter Property?
Here is my code, for what it is worth...
dvProfileDirectory.RowFilter = "UserID = '" & "Bugs" & "' and ProfileNameID =
" & profile_lastProfileNameSelected & " and ProfileType = '" & "BUG" & "'"
dvProfileDirectory.RowStateFilter = DataViewRowState.ModifiedCurrent
If dvProfileDirectory.Table.Rows.Count > 0 Then
The row count in the If statement is always the total number of rows in the
table.
Thanks in advance for your assistance.
interated through the view, that I would only see those rows which met the row
filter. I am not finding that to be the case. I am putting values in the
rowfilter that I know are not present, yet when I iterate through the
dataview, I see all rows. What am I doing wrong?
The second question has to do with RowFilterState. If I want to see the
modified version of all rows, but not deleted, and all rows which have never
been modified what is the proper setting for the RowFilter Property?
Here is my code, for what it is worth...
dvProfileDirectory.RowFilter = "UserID = '" & "Bugs" & "' and ProfileNameID =
" & profile_lastProfileNameSelected & " and ProfileType = '" & "BUG" & "'"
dvProfileDirectory.RowStateFilter = DataViewRowState.ModifiedCurrent
If dvProfileDirectory.Table.Rows.Count > 0 Then
The row count in the If statement is always the total number of rows in the
table.
Thanks in advance for your assistance.