Skip to main content

ASPxClientGridView.ColumnStartDragging Event

Fires when an end-user starts dragging the column’s header and enables you to cancel this operation.

Declaration

ColumnStartDragging: ASPxClientEvent<ASPxClientGridViewColumnCancelEventHandler<ASPxClientGridView>>

Event Data

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

Property Description
cancel Specifies whether to cancel the related action (for example, row edit, export). Inherited from ASPxClientCancelEventArgs.
column Gets the processed client column.

Remarks

If the ASPxGridViewBehaviorSettings.AllowDragDrop option is enabled, end-users can reorder columns and move individual columns to the Customization Window via drag and drop. The ColumnStartDragging event enables you to prevent the columns you desire from being moved. To do this, set the event parameter’s cancel property to true. The processed client column is identified by the column property.

See Also