M
Martin
I am, in two different codes, using DataView.RowFilter. In one it does work
but in the other it does not. I dont recive any Error Messages, the code
runs thru and delivers a result, unfiltered. Number one looks like this:
Dim dvHours As New DataView
dvHours.Table = DS.Tables(1)
dvHours.RowFilter = "StoreId=" & .RecordId
dvHours.Sort = "ViewOrder"
And number two, the one that doesn´t work, look like this:
Dim DV As New DataView
'With DV
DV.Table = Ds.Tables(0) '.Copy
DV.RowFilter = "intDate=" & RegDate '.ToString
DV.Sort = "StoreId" As
'End With
As you can see, I do have tried different solutions on the second one. What
ever I tried, the result is still the same, the DataView keep all the
records as it had before the RowFilter is set. Thanks for any hint.
but in the other it does not. I dont recive any Error Messages, the code
runs thru and delivers a result, unfiltered. Number one looks like this:
Dim dvHours As New DataView
dvHours.Table = DS.Tables(1)
dvHours.RowFilter = "StoreId=" & .RecordId
dvHours.Sort = "ViewOrder"
And number two, the one that doesn´t work, look like this:
Dim DV As New DataView
'With DV
DV.Table = Ds.Tables(0) '.Copy
DV.RowFilter = "intDate=" & RegDate '.ToString
DV.Sort = "StoreId" As
'End With
As you can see, I do have tried different solutions on the second one. What
ever I tried, the result is still the same, the DataView keep all the
records as it had before the RowFilter is set. Thanks for any hint.