R
Ron Ward
In SQL Server, I can have the following statement:
select * from MyTable where (MyColumn & 0x0001) = 1
Basically any row with a 1 or a 3 in the MyColumn will return on this call.
If I load the entire table into a DataTable object and then attempt this
same filter by setting the RowFilter property:
oDataTable.DefaultView.RowFilter = "(MyColumn & 0x0001) = 1";
I get an error: System.Data.SyntaxErrorException: Cannot interpret token '0'
Is the bitwise operator invalid on the RowFilter property, or do I need to
set this property differently?
Thank you in advance...-Ron Ward
select * from MyTable where (MyColumn & 0x0001) = 1
Basically any row with a 1 or a 3 in the MyColumn will return on this call.
If I load the entire table into a DataTable object and then attempt this
same filter by setting the RowFilter property:
oDataTable.DefaultView.RowFilter = "(MyColumn & 0x0001) = 1";
I get an error: System.Data.SyntaxErrorException: Cannot interpret token '0'
Is the bitwise operator invalid on the RowFilter property, or do I need to
set this property differently?
Thank you in advance...-Ron Ward