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. Image for the cookie policy date
close icon

Hide button in combobox cell

By default, a combo box cell has a button to click even when the cell does not have focus. To match our older grid products, I would like our Syncfusion grids to only show the combobox button in the cell when the user clicks into the cell. How do I accomplish this?

thanks,

Kyle

1 Reply

AD Administrator Syncfusion Team February 21, 2007 08:44 AM UTC

Hi Kyle,

Setting the ShowButtons = GridShowButtons.ShowCurrentCellEditing; will show the buttons only when you enter the cell.

gridControl1[rowIndex, 1].Text = "Buttons when editing";
gridControl1[rowIndex, 3].CellType = cellType;
gridControl1[rowIndex, 3].ChoiceList = items;
gridControl1[rowIndex, 3].DropDownStyle = GridDropDownStyle.Editable;
gridControl1[rowIndex, 3].ShowButtons = GridShowButtons.ShowCurrentCellEditing;

Please refer this sample:[Combobox.zip]

Let us know if this helps.

Best Regards,
Jeba.

Loader.
Live Chat Icon For mobile
Up arrow icon