FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid Namespace / C1FlexGridBase Class / KeyDownEdit Event

In This Topic
    KeyDownEdit Event (C1FlexGridBase)
    In This Topic
    Fires in edit mode, when the user presses a key.
    Syntax
    'Declaration
     
    
    Public Event KeyDownEdit As KeyEditEventHandler
    public event KeyEditEventHandler KeyDownEdit
    Event Data

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

    PropertyDescription
    Gets a value indicating whether the ALT key was pressed.  
    Gets the column index of the cell being edited when the key was pressed.  
    Gets a value indicating whether the CTRL key was pressed.  
    Gets or sets a value indicating whether the event was handled and should be ignored by the control.  
    Gets the key code for the event, which will be one of the System.Windows.Forms.Keys values.  
    Gets the key code for the key that was pressed, combined with modifier flags that indicate which combination of CTRL, SHIFT, and ALT keys were pressed at the same time.  
    Gets the integer representation of the KeyData property.  
    Gets the modifier flags, as defined in Keys. This indicates which combination of modifier keys (CTRL, SHIFT, and ALT) were pressed.  
    Gets the row index of the cell being edited when the key was pressed.  
    Gets a value indicating whether the SHIFT key was pressed.  
    Remarks

    The KeyDownEdit event corresponds to the System.Windows.Forms.Control.KeyDown event, except it fires when the grid is in edit mode (in this case, the control that received the key is the editor, not the grid itself).

    The editor has three modes: text, drop-down combo, or drop-down list. The mode used is determined by the ComboList properties in the grid and column objects.

    While editing with the text editor or with a drop-down combo, you may set or retrieve the contents of the editor by retrieving the editor control with the Editor property and casting it to the proper type.

    See Also