menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCurrentCellShowingDropDownEventArgs - API Reference

    Show / Hide Table of Contents

    Class GridCurrentCellShowingDropDownEventArgs

    Provides data about the cancelable CurrentCellShowingDropDown event when the grid drops-down the drop-down portion of the current cell.

    Inheritance
    System.Object
    SyncfusionCancelEventArgs
    GridCurrentCellShowingDropDownEventArgs
    Inherited Members
    SyncfusionCancelEventArgs.ToString()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public sealed class GridCurrentCellShowingDropDownEventArgs : SyncfusionCancelEventArgs
    Remarks

    The event will provide a suggested size of the drop-down control. You can change the default size in your event handler by changing the 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 DropDownRows property that defines the number of visible rows.

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

    If you need to get access to the cell renderer, you can use the 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.

    Constructors

    GridCurrentCellShowingDropDownEventArgs(Size)

    Initializes the new instances for the GridCurrentCellShowingDropDownEventArgs class.

    Declaration
    public GridCurrentCellShowingDropDownEventArgs(Size size)
    Parameters
    Type Name Description
    System.Drawing.Size size

    The suggested size for the drop-down control. You can change this size in your event handler.

    Properties

    Size

    Gets or sets the suggested size for the drop-down control. You can change this size in your event handler.

    Declaration
    [TraceProperty(true)]
    public Size Size { get; set; }
    Property Value
    Type Description
    System.Drawing.Size
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved