Workbook.ColumnsInserting Event
Occurs before new columns are added to a worksheet.
You need a license for the DevExpress Office File API Subscription or DevExpress Universal Subscription to use this event in production code.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Docs.v24.2.dll
NuGet Package: DevExpress.Document.Processor
#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 Cancel |
Count |
Gets the number of rows/columns that will be inserted or removed.
Inherited from Rows |
Start |
Gets the index of the first row/column after which rows/columns will be inserted or removed.
Inherited from Rows |
#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 Columns