CustomCellRenderer and DropDownStyle

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

1 Reply

HA haneefm Syncfusion Team April 12, 2007 10:42 PM UTC

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

Loader.
Up arrow icon