Custom cell renderer and show button

Hi,

I have created a custom cell renderer which switches between a combobox view and a normal static text view. Which means sometimes a see a dropdown button in the cell and sometimes not (depending on the type).

Now I have set the following in my grid:

myGrid.Appearance.AnyCell.ShowButtons = GridShowButtons.ShowCurrentRow;

Which means the buttons are painted only when I click on the specific row. This doesn't work for my custom cell renderer. I have to click in the specific cell to see the pulldown button. How is the relation between the:

myGrid.Appearance.AnyCell.ShowButtons = GridShowButtons.ShowCurrentRow;

and my custom cell renderer. How can I decide if I have to paint the button or not in my custom cell renderer - a small example would be great.

Cheers,
Chris

1 Reply

AD Administrator Syncfusion Team January 24, 2007 05:39 PM UTC

Hi Chris,

Please refer the attached sample and let me know if this helps.
AutoOFFComboBox.zip

Best Regards,
Haneef

Loader.
Up arrow icon