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? 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
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?
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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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 =...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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,...
|
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...
|
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...
| |