HighTechTalks DotNet Forums  

Dataview RowFilter fails with multiple conditions

Dotnet Framework (ADO.net) microsoft.public.dotnet.framework.adonet


Discuss Dataview RowFilter fails with multiple conditions in the Dotnet Framework (ADO.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
MonkeyBoy
 
Posts: n/a

Default Dataview RowFilter fails with multiple conditions - 06-09-2004 , 02:56 AM






Trying to use a RowFilter with multiple conditions OR'ed together
The dataview the rowfilter is set on is the datasource of a datagrid

This filter..
"(Instances > '9') OR (Time < '1900-01-01 06:00:00.000') OR (Time > '1900-01-01 22:00:00.000')
.... yields incorrect results... only displays rows meeting the 1st condition... the other 2 conditions are ignored

This filter..
"(Time < '1900-01-01 06:00:00.000') OR (Time > '1900-01-01 22:00:00.000')
.... correctly displays rows meeting both conditions

Any idea if I should be using a different syntax

Thank
-Mat


Reply With Quote
  #2  
Old   
MonkeyBoy
 
Posts: n/a

Default RE: Dataview RowFilter fails with multiple conditions - 06-09-2004 , 03:06 AM






Ooops, Correction...
meant to say above that the 2nd filter correctly displays rows from either of the 2 conditions


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.