Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

Workbook.ColumnsInserting Event

Occurs before inserting new columns into a worksheet.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Docs.v19.1.dll

Declaration

public event ColumnsChangingEventHandler ColumnsInserting

Event Data

The ColumnsInserting event's data class is ColumnsChangingEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
Count Gets the number of rows/columns that will be inserted or removed. Inherited from RowsColumnsChangingEventArgsBase.
StartIndex Gets the index of the first row/column after which rows/columns will be inserted or removed. Inherited from RowsColumnsChangingEventArgsBase.

Remarks

The ColumnsInserting event allows you to perform any actions before new columns are inserted into a worksheet. You can cancel inserting new columns by setting the event parameter’s Cancel property to true.

After new columns have been inserted, the Workbook.ColumnsInserted event is raised.

Note

By default, the ColumnsInserting event does not occur when adding new columns in code. However, this event will also be triggered by changes made via an API if you set the WorkbookEventOptions.RaiseOnModificationsViaAPI property (accessible via the Workbook.Options.Events.RaiseOnModificationsViaAPI notation) to true.

Implements

See Also