Class GridCellComboBoxButton
Implements a cell button element that looks like a combo box button. Typically used with GridComboBoxCellRenderer and GridDropDownCellRenderer.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridCellComboBoxButton : GridCellButton, IDisposable
Remarks
The combo box button is XP Themes enabled. It will be drawn themed if ThemesEnabled is True.
Constructors
GridCellComboBoxButton(GridCellRendererBase)
Initializes a GridCellComboBoxButton and associates it with a GridCellRendererBase.
Declaration
public GridCellComboBoxButton(GridCellRendererBase control)
Parameters
Type | Name | Description |
---|---|---|
GridCellRendererBase | control | The GridCellRendererBase that draws this cell button element. |
Properties
DrawEllipsis
Gets or sets a value indicating whether ellipsis (...) should be drawn instead of the default combo box button.
Declaration
public bool DrawEllipsis { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
Dispose(Boolean)
Disposes the unmanaged resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
DrawButton(Graphics, Rectangle, ButtonState, GridStyleInfo)
Draws a button using System.Windows.Forms.ControlPaint.DrawButton(System.Drawing.Graphics,System.Drawing.Rectangle,System.Windows.Forms.ButtonState) or if XP Themes are enabled, button will be drawn themed.
Declaration
public override void DrawButton(Graphics g, Rectangle rect, ButtonState buttonState, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics context of the canvas. |
System.Drawing.Rectangle | rect | The System.Drawing.Rectangle with the bounds. |
System.Windows.Forms.ButtonState | buttonState | A System.Windows.Forms.ButtonState that specifies the current state. |
GridStyleInfo | style | The style information for the cell. |