CurrentCellShowingDropDown Event (GridControlBase)

Occurs when the drop-down part is about to be shown.
<DescriptionAttribute("Occurs when the drop-down part is about to be shown.")>
Public Event CurrentCellShowingDropDown As GridCurrentCellShowingDropDownEventHandler
Dim instance As GridControlBase
Dim handler As GridCurrentCellShowingDropDownEventHandler
AddHandler instance.CurrentCellShowingDropDown, handler
[Description("Occurs when the drop-down part is about to be shown.")]
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.

(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.  
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.


Syncfusion.Grid.Windows: 17.1460.0.47

See Also