473,414 Members | 1,623 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Is there a bug with RowFilter? It's returning the wrong rows.

OC
I have a datatable for which I have bound a DataView. I have three rows in
the table, with rowid = '12310104', '12314402', and '12315208'.

When I do a dvHdr.RowFilter = '12314402', it returns a count of 1 set to
'12310104' rather than what I am looking for.

However, if I do, say, dvHdr.RowFilter = '12314403' (non-existent), it
results in a count of 0, which is expected.

Why can't I filter on what I am expecting?
Jul 21 '05 #1
3 1362
OC <nf*@nospam.com> wrote:
I have a datatable for which I have bound a DataView. I have three rows in
the table, with rowid = '12310104', '12314402', and '12315208'.

When I do a dvHdr.RowFilter = '12314402', it returns a count of 1 set to
'12310104' rather than what I am looking for.

However, if I do, say, dvHdr.RowFilter = '12314403' (non-existent), it
results in a count of 0, which is expected.

Why can't I filter on what I am expecting?


Could you show the code you're using? If you could come up with a short
but complete example, that would be even better.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #2
It is wrong: dv.RowFilter="'12310104'". You need to specify column name:

dv.RowFilter="IDColumn='12310104'" //suppose the IDColumn has text value

"OC" <nf*@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have a datatable for which I have bound a DataView. I have three rows in
the table, with rowid = '12310104', '12314402', and '12315208'.

When I do a dvHdr.RowFilter = '12314402', it returns a count of 1 set to
'12310104' rather than what I am looking for.

However, if I do, say, dvHdr.RowFilter = '12314403' (non-existent), it
results in a count of 0, which is expected.

Why can't I filter on what I am expecting?

Jul 21 '05 #3
OC
Sorry... my original post was a typo. I was using the format you described
below.

"Norman Yuan" <no********@RemoveThis.shaw.ca> wrote in message
news:mMMYb.554685$ts4.233656@pd7tw3no...
It is wrong: dv.RowFilter="'12310104'". You need to specify column name:

dv.RowFilter="IDColumn='12310104'" //suppose the IDColumn has text value
"OC" <nf*@nospam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have a datatable for which I have bound a DataView. I have three rows in the table, with rowid = '12310104', '12314402', and '12315208'.

When I do a dvHdr.RowFilter = '12314402', it returns a count of 1 set to
'12310104' rather than what I am looking for.

However, if I do, say, dvHdr.RowFilter = '12314403' (non-existent), it
results in a count of 0, which is expected.

Why can't I filter on what I am expecting?


Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Daniel Groh | last post by:
Hi People, I have the following code: --------- DataView dvErrorSQL = new DataView(dsErroSQL.Tables); dvErroSQL.RowFilter = "cdError = " + iError; --------------------- I need to send the...
2
by: Ryan Moore | last post by:
I have a dataset (called adset) which has a column called "Large" which is either an integer 0 or 1. I am creating 2 dataviews, one which should display the 1's and one which should display the...
8
by: Dave Hagerich | last post by:
I'm using a DataGrid with a DataSet and I'm trying to filter the data being displayed, using the following code as a test: DataView theView = new DataView(theDataSet.Tables); theView.RowFilter =...
3
by: OC | last post by:
I have a datatable for which I have bound a DataView. I have three rows in the table, with rowid = '12310104', '12314402', and '12315208'. When I do a dvHdr.RowFilter = '12314402', it returns a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.