ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / C1FlexGridBase Class / ChangeEdit Event
Example

In This Topic
    ChangeEdit Event (C1FlexGridBase)
    In This Topic
    Fires in edit mode, after the contents of the editor change.
    Syntax
    'Declaration
     
    Public Event ChangeEdit As EventHandler
    public event EventHandler ChangeEdit
    Remarks

    This event fires while the grid is in edit mode and the contents of the editor change. This may be caused by the user typing into the editor or selecting a new item in a drop down list.

    When this event fires, the new editor content has not been applied to the grid cell yet. You may check the new content using the Editor property.

    Example
    The code below shows a message when the text being edited contains more than 10 characters:
    void _flex_ChangeEdit(object sender, EventArgs e)
    {
      // get text in editor
      string text = _flex.Editor.Text;
                
      // show message if it's too long
      statusStrip1.Text = text.Length > 10
        ? "This text seems too long..."
        : "This text looks OK...";
    }
    See Also