We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

RecordFilterDescriptor, filter on boolean

What's the best way to create a RecordFilterDescriptor that filters on boolean values? I haven't seen any examples and the couple of things I tried didn't work.

Thanks,
Mark


1 Reply

JS Jeba S Syncfusion Team February 13, 2008 08:47 AM UTC

Hi Mark,

Thank you for posting query to us.

You can add a RecordFilterDescriptor to the TableDescriptor's RecordFilters collection and filter the boolean values using the LIKE operator. Below is the code snippets:


RecordFilterDescriptor rfd = new RecordFilterDescriptor();
rfd.Expression="[BoolColumn] LIKE 'False'";
this.gridGroupingControl1.TableDescriptor.RecordFilters.Add(rfd);


Please refer the sample which implements the above said feature:
http://websamples.syncfusion.com/samples/Grid.Windows/F71775/main.htm

Kindly let us know if you need any further assistance.

Best Regards,
Jeba.



Loader.
Live Chat Icon For mobile
Up arrow icon