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.
Unfortunately, activation email could not send to your email. Please try again.

RecordFilterDescriptor, filter on boolean

Thread ID:

Created:

Updated:

Platform:

Replies:

71775 Feb 12,2008 05:13 PM Feb 13,2008 03:47 AM Windows Forms 1
loading
Tags: GridControl
Mark Atkinson
Asked On February 12, 2008 05:13 PM

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


Jeba S [Syncfusion]
Replied On February 13, 2008 03:47 AM

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.



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;