Hi,
I'm trying to programmatically set a FilterDescriptor to default filter out a number of rows in a dataset/datatable based on
a Boolean property/column that I retrieve from my database/viewmodel. The problem is that I keep getting conversion error:
'The binary operator Equal is not defined for the types 'System.Object' and 'System.Boolean.'.
paramView.FilterDescriptors.Add(new FilterDescriptor("Show",FilterOperator.IsEqualTo,true));
I've confirmed that the datatype from the database is a System.Data.DbType.Boolean (shows up in the grid as a checkbox column by default). Am I wrong in assuming that there should be a way of expressing 'true' that meets the requirement of the FilterExpression-generator, or is there another recommended way of accomplishing this task?
Best regards,
Finn