Syncfusion.Grid.Windows


CurrentCellShowingDropDown Event (GridControlBase)

Occurs when the drop-down part is about to be shown.
Syntax
'Declaration
 
<DescriptionAttribute("Occurs when the drop-down part is about to be shown.")>
<CategoryAttribute("Behavior")>
Public Event CurrentCellShowingDropDown As GridCurrentCellShowingDropDownEventHandler
'Usage
 
Dim instance As GridControlBase
Dim handler As GridCurrentCellShowingDropDownEventHandler
 
AddHandler instance.CurrentCellShowingDropDown, handler
[Description("Occurs when the drop-down part is about to be shown.")]
[Category("Behavior")]
public event GridCurrentCellShowingDropDownEventHandler CurrentCellShowingDropDown
Event Data

The event handler receives an argument of type GridCurrentCellShowingDropDownEventArgs containing data related to this event. The following GridCurrentCellShowingDropDownEventArgs properties provide information specific to this event.

PropertyDescription
(Inherited from System.ComponentModel.CancelEventArgs)
Gets or sets the suggested size for the drop-down control. You can change this size in your event handler.  
Remarks
The event will provide you with a suggested size of the drop-down control. You can change the default size in your event handler by changing the GridCurrentCellShowingDropDownEventArgs.Size property.

Please note however that some drop-down controls might override the suggested height with their own preferred height. The GridDropDownGridListControlPart and GridComboBoxListBoxPart methods both provide a GridComboBoxListBoxPart.DropDownRows property that defines the number of visible rows.

To abort the drop-down operation, you should set System.ComponentModel.CancelEventArgs.Cancel to True.

If you need to get access to the cell renderer, you can use the GridCurrentCell.Renderer property of the CurrentCell object. The CurrentCell object also holds style information and row and column index. See the cell renderer for properties to access the drop-down container and drop-down part.

AssemblyVersion

Syncfusion.Grid.Windows: 17.1460.0.47

See Also