ComponentOne FlexGrid for WinForms
BeforeDeleteRow Event

C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : BeforeDeleteRow Event
Fires before a row is deleted by the user.
Syntax
'Declaration
 
Public Event BeforeDeleteRow As RowColEventHandler
public event RowColEventHandler BeforeDeleteRow
Event Data

The event handler receives an argument of type RowColEventArgs containing data related to this event. The following RowColEventArgs properties provide information specific to this event.

PropertyDescription
Gets or sets a value indicating whether the operation should be canceled.  
Gets the index of the column that caused the event.  
Gets the index of the row that caused the event.  
Remarks

This event only fires when AllowDelete is set to true and the user deletes one or more rows by selecting them and pressing the DEL key. It does not fire when rows are removed from the grid programmatically or through the grid's data source.

You can use this event to cancel the deletion of the rows by setting the Cancel parameter to true.

See Also