How is it possible to remove a filter from server side? For example I need to use combined filtering of columns.
if we have 5 columns and we filter 3 of them initially, this is fine however if the user changes the filter for one of the columns, the filter expression is incorrect (understandbly why because I am concatinating the existing expression along with the new one)
is there a way to remove a specific filter and then apply the new filter?
so the initial expression maybe "DateTime >= #...#"
Then if the user selects a different filter then the expression will be:
"DateTime >= #...# AND DateTime <= #...#"
which is not what I want. In this case it would be DateTime <= #...#
so I just want to remove from the FilterExpression the related column filter completely
if we have 5 columns and we filter 3 of them initially, this is fine however if the user changes the filter for one of the columns, the filter expression is incorrect (understandbly why because I am concatinating the existing expression along with the new one)
is there a way to remove a specific filter and then apply the new filter?
If (String.IsNullOrEmpty(Me.grdShiftObservation.MasterTableView.FilterExpression)) Then
Me.grdShiftObservation.MasterTableView.FilterExpression = dtFromString
Else
Me.grdShiftObservation.MasterTableView.FilterExpression = Me.grdShiftObservation.MasterTableView.FilterExpression & " AND " & dtFromString
end if
so the initial expression maybe "DateTime >= #...#"
Then if the user selects a different filter then the expression will be:
"DateTime >= #...# AND DateTime <= #...#"
which is not what I want. In this case it would be DateTime <= #...#
so I just want to remove from the FilterExpression the related column filter completely