SpreadsheetFormulaBar.OkButtonClick Event

Occurs when the Enter button on the Formula Bar is clicked.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v20.1.dll

Declaration

public event EventHandler OkButtonClick
Public Event OkButtonClick As EventHandler

Event Data

The OkButtonClick event's data class is EventArgs.

Remarks

The Formula Bar contains three buttons, each of which has a default action:

  • Cancel button cancels the user input;
  • Enter button completes the user edit and evaluates the entered formula;
  • Insert Function button inserts a function from the Function Library.

SpreadsheetControl_NewFormulaBarElements

This default action is performed each time a user clicks the button. You can however, override the default behavior or perform additional actions when the button is clicked. Handle the OkButtonClick event for this purpose. This event fires each time the Enter button is clicked.

Implements

DevExpress.XtraSpreadsheet.Model.IFormulaBarControllerOwner.OkButtonClick
See Also