Class GridDropDownGridListControlPart
Implements the grid that can be displayed in a drop-down window for a combo box. Handles auto scrolling and resize to fit contents.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid
Assembly: Syncfusion.Grid.Windows.dll
Syntax
public class GridDropDownGridListControlPart : GridListControl, IThemedControl, ISupportInitialize, IThemeProvider, IVisualStyle
Constructors
GridDropDownGridListControlPart()
Initializes a new GridDropDownGridListControlPart control.
Declaration
public GridDropDownGridListControlPart()
Properties
AllowModifySetBoundsCore
Gets or sets a value indicating whether to allow modify SetBoundsCore. Used internally.
Declaration
public bool AllowModifySetBoundsCore { get; set; }
Property Value
Type |
---|
System.Boolean |
DropDownRows
Gets or sets the number of visible rows when the window is dropped-own.
Declaration
public int DropDownRows { get; set; }
Property Value
Type |
---|
System.Int32 |
Methods
Dispose(Boolean)
Used to dispose the GridCellUpDownButton
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Boolean to control disposing. |
Overrides
GetOptimalWidth()
Determines the optimal width of the drop-down window based on current column widths in this grid.
Declaration
protected virtual int GetOptimalWidth()
Returns
Type | Description |
---|---|
System.Int32 | Drop-down window width. |
OnBindingContextChanged(EventArgs)
This event fires when the binding context changed.
Declaration
protected override void OnBindingContextChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e | The System.EventArgs that contains event data. |
Overrides
SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)
Used to set the modified bound core.
Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The horizontal screen coordinate. |
System.Int32 | y | The vertical screen coordinate. |
System.Int32 | width | The Width |
System.Int32 | height | The height |
System.Windows.Forms.BoundsSpecified | specified | The System.Windows.Forms.BoundsSpecified |
Overrides
WndProc(ref Message)
Used to manage the windows processing messages.
Declaration
protected override void WndProc(ref Message msg)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.Message | msg | The System.Windows.Forms.Message |