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

  • Thread starter Thread starter OC
  • Start date Start date
O

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?
 
OC said:
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.
 
It is wrong: dv.RowFilter="'12310104'". You need to specify column name:

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