Back to Devexpress

BaseView Events

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-dot-underscore-events.md

latest5.1 KB
Original Source

BaseView Events

Serves as the base for objects representing Views in a grid control.

NameDescription
BeforeLoadLayoutOccurs before a layout is restored from storage (a stream, xml file or the system registry).
ClickOccurs when a View is clicked.
DataSourceChangedOccurs when the data source of the current View changes.
DisposedOccurs when the component is disposed by a call to the Dispose() method. Inherited from Component.
DoubleClickOccurs when a View is double-clicked.
GotFocusOccurs when a View receives focus.
InvalidValueExceptionEnables you to provide a proper response to entering an invalid cell value.
KeyDownFires when a user presses a key while the View has focus.
KeyPressFires when a character key is pressed while the View has focus.
KeyUpOccurs when releasing the pressed key.
LayoutFires immediately after a View’s layout has been changed.
LayoutUpgradeOccurs when a layout is restored from storage (a stream, xml file or system registry) and its version differs from the version of the current View’s layout.
LostFocusOccurs when a View loses focus.
MouseDownOccurs when the mouse pointer is over a View and a mouse button is pressed.
MouseEnterOccurs when the mouse pointer enters the View.
MouseLeaveOccurs when the mouse pointer leaves the View.
MouseMoveOccurs when the mouse pointer moves over a View.
MouseUpOccurs when the mouse button is released if it was pressed within a View.
MouseWheelOccurs when the mouse wheel is moved while a View has focus.
PaintStyleChangedFires after the View’s paint style has changed.
PrintExportCompletedAllows you to determine whether the view data was printed or exported without errors.
PrintExportProgressFires repeatedly while the View’s data is being printed/exported.
PrintInitializeAllows you to customize general print/export settings when the View is about to be printed/exported.
PropertyDeserializingAllows you to restore certain settings previously saved in the layout.
PropertySerializingAllows you to include certain settings in the layout when you save it.
RowCountChangedOccurs when the number of visible records is changed within a View.
ValidatingEditorFires when a user edits a row cell value and attempts to select another cell. Handle this event to check whether this new value is valid, and if not, choose the required behavior (discard edits, show a warning message, ignore errors, or keep the focus on this cell until a user enters valid values). This event allows you to track edits made in the Edit Form.

See Also

BaseView Class

BaseView Members

DevExpress.XtraGrid.Views.Base Namespace