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.

CustomCellRenderer and DropDownStyle

Thread ID:

Created:

Updated:

Platform:

Replies:

59418 Apr 12,2007 08:15 AM Apr 12,2007 06:42 PM Windows Forms 1
loading
Tags: GridControl
Franz Gsell
Asked On April 12, 2007 08:15 AM

Hi,

I am using a customcellrenderer which is derived from GridComboBoxCellRenderer. Now I want to set the DropDownStyle of my CustomCellRenderer to "Exclusive" by default.

But when I do something like this in the constructor of my derived cell renderer:

this.StyleInfo.DropDownStyle = GridDropDownStyle.Exclusive;

nothing happens. The style is still "Editable".

It is important for me to set the style inside the renderer - is there any way to solve this?

Cheers,
Tom

PS: I forgot to mention that I am using a GGC - don't know if this becomes important

haneefm [Syncfusion]
Replied On April 12, 2007 06:42 PM

Hi Tom,

You need to turn OFF the SupportFocusControl property in a dervied GridComboBoxCellRenderer class. Here is a code snippet.

this.SupportsFocusControl = false;

Please refer to the attached sample for implementation.
ResizeToFitComboBox.zip

Best regards,
Haneef

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.

;