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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ComboBox buttons

Thread ID:





761 Aug 14,2002 07:21 AM UTC Aug 14,2002 02:07 PM UTC WinForms 1
Tags: GridControl
Michael Marake
Asked On August 14, 2002 07:21 AM UTC

The cells that use CellType "ComboBox" do not display their contents in the area where the ComboBox button is displayed. If I set ShowButtons to GridShowButtons.Hide or GridShowButtons.ShowCurrentCell the buttons are not displayed, but still the text in the cell is clipped. Is there a way to get the text displayed? (I thought of things like switching the CellType between "TextBox" and "ComboBox" during (de)activation of a cell, but I am not shure about side-effects and hope there is an easier way). Thanks, Michael

Clay Burch [Syncfusion]
Replied On August 14, 2002 02:07 PM UTC

Right now, one way you can do this is to derive a cell control based on GridComboBoxCellModel/Renderer, override the renderer OnDraw method, and adjust the rectangle if the cell is not current. Attached is a sample that shows how to do this. Though you have to add two classes, there is not much code that needs to be written. This sample more or less follows the steps outlined in the the Deriving Cell Controls tutorial in the User's Guide, though the coding is simpler than the LinkLabel code used in the tutorial.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon