Back to Devexpress

Workbook.RowsRemoving Event

officefileapi-devexpress-dot-spreadsheet-dot-workbook-0f6fb1a6.md

latest3.3 KB
Original Source

Workbook.RowsRemoving Event

Occurs before rows are removed from 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.v25.2.dll

NuGet Package : DevExpress.Document.Processor

Declaration

csharp
public event RowsChangingEventHandler RowsRemoving
vb
Public Event RowsRemoving As RowsChangingEventHandler

Event Data

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

PropertyDescription
CancelGets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
CountGets the number of rows/columns that will be inserted or removed. Inherited from RowsColumnsChangingEventArgsBase.
StartIndexGets the index of the first row/column after which rows/columns will be inserted or removed. Inherited from RowsColumnsChangingEventArgsBase.

Remarks

The RowsRemoving event allows you to perform any actions before removing rows from a worksheet. To prevent rows from being deleted, set the event parameter’s Cancel property to true.

After rows have been removed from a worksheet, the Workbook.RowsRemoved event is raised.

Note

By default, the RowsRemoving event does not occur when removing rows 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

RowsRemoving

See Also

RowsRemoved

Workbook Class

Workbook Members

DevExpress.Spreadsheet Namespace