PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average.

DataView RowFilter does not work with mulitple conditions

 
 
Mike Kline
Guest
Posts: n/a
 
      2nd Feb 2005
Hi There!

I'm on .NET framework 1.1 with .NET framework SP1. My OS is Windows XP with
SP2.

I have the RowFilter property of the DataView set to...

"[column_one] <= 2 AND [column_two] >= 4"

But I didn't get the filtered result set, instead I get all the results from
the table unfiltered. So I checked the DataView.RowFilter property
immediately after I set the filter and it return "True" instead of the
filter condition "[column_one] <= 2 AND [column_two] >= 4".

However, if I set the condition to just "[column_one] <= 2", then it works.
Only when I do multiple conditions, it changes the RowFilter to "True" and
return all the rows from the table without filtering.

What I'm missing here?

Thank you all in advance!!!
MK


 
Reply With Quote
 
 
 
 
Mike Kline
Guest
Posts: n/a
 
      2nd Feb 2005
Forget it, I found the error. Forgot to put the double quotes on literal
strings :P

MK

"Mike Kline" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi There!
>
> I'm on .NET framework 1.1 with .NET framework SP1. My OS is Windows XP
> with SP2.
>
> I have the RowFilter property of the DataView set to...
>
> "[column_one] <= 2 AND [column_two] >= 4"
>
> But I didn't get the filtered result set, instead I get all the results
> from the table unfiltered. So I checked the DataView.RowFilter property
> immediately after I set the filter and it return "True" instead of the
> filter condition "[column_one] <= 2 AND [column_two] >= 4".
>
> However, if I set the condition to just "[column_one] <= 2", then it
> works. Only when I do multiple conditions, it changes the RowFilter to
> "True" and return all the rows from the table without filtering.
>
> What I'm missing here?
>
> Thank you all in advance!!!
> MK
>



 
Reply With Quote
 
W.G. Ryan eMVP
Guest
Posts: n/a
 
      3rd Feb 2005
Here's an example where I use multiple conditions as well as functions in
them http://www.knowdotnet.com/articles/a...rowfilter.html
Can you show the actual value you're using?

--
W.G. Ryan MVP (Windows Embedded)

TiBA Solutions
www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
"Mike Kline" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hi There!
>
> I'm on .NET framework 1.1 with .NET framework SP1. My OS is Windows XP

with
> SP2.
>
> I have the RowFilter property of the DataView set to...
>
> "[column_one] <= 2 AND [column_two] >= 4"
>
> But I didn't get the filtered result set, instead I get all the results

from
> the table unfiltered. So I checked the DataView.RowFilter property
> immediately after I set the filter and it return "True" instead of the
> filter condition "[column_one] <= 2 AND [column_two] >= 4".
>
> However, if I set the condition to just "[column_one] <= 2", then it

works.
> Only when I do multiple conditions, it changes the RowFilter to "True" and
> return all the rows from the table without filtering.
>
> What I'm missing here?
>
> Thank you all in advance!!!
> MK
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataView Constructor RowFilter Doesn't Work? Spam Catcher Microsoft VB .NET 1 24th Jan 2008 03:47 PM
dataview rowfilter doent work karthey@gmail.com Microsoft C# .NET 8 19th Mar 2007 06:29 PM
Dataview.Rowfilter help s26f84@gmail.com Microsoft Dot NET Framework Forms 3 18th Oct 2006 02:25 AM
DataView RowFilter Mike Microsoft ADO .NET 1 27th Jul 2004 11:27 PM
Dataview RowFilter fails with multiple conditions =?Utf-8?B?TW9ua2V5Qm95?= Microsoft ADO .NET 1 9th Jun 2004 09:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:24 PM.