3
I have a Dataview and I’m trying to make a filter, where the 'photo' field is different from NULL
I tried to:
dv.RowFilter = "foto <> ''";
But it didn’t filter. I looked here at Stackover and recommended:
dv.RowFilter = "Isnull(foto,'') <> ''";
tried as well:
dv.RowFilter = "Isnull(foto, 'Null Column') != 'Null Column'";
With:
"foto <> null"
it returns no result.
Same thing, no filter, in the database it returns as NULL
When I make a simple filter of the type
dv.RowFilter = "foto ='123412341234.jpg'";
works perfectly.
I believe your problem is not in the filter, but when you make the filter
– PauloHDSousa
when I make a simple filter type: dv.Rowfilter = "photo ='123412341234.jpg'"; works perfectly.
– Dorathoto
So forget what I said.
– PauloHDSousa
You can put the code up to the databind part?
– PauloHDSousa