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.

filter bar cell binding enum type

Thread ID:

Created:

Updated:

Platform:

Replies:

95878 Aug 6,2010 04:15 AM Aug 10,2010 08:45 AM Windows Forms 1
loading
Tags: GridControl
yuazhe
Asked On August 6, 2010 04:15 AM

I have a filterbarcell and it is bound to a Enum type. However, when I change the filter cell value, it displays the enum integer instead of enum value. i.e. it displays 1 instead of ONE.
Enum type: ONE=1.
Is it possible to have filterbarcell bound to a enum type and displays value instead of integer always?

Thanks

Nirmal Raja [Syncfusion]
Replied On August 10, 2010 08:45 AM

Hi,

Thank you for your interest in Syncfusion products.

By default the enum column type will have the index in the filter bar as it is represented as a value. In order to have the display text in the filter drop down you need to work around with the following events such as QueryFilterBarChoices, QueryRecordMeetsFilterCriteria and TableControlCurrentCellCloseDropDown.

Please refer the sample attached in the below location:
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GGCEnum2013429504.zip

Let me know if you have any queries.

Regards,
Nirmal

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.

;