VGridCustomizationForm.PressedRow Property

Gets or sets a row whose header is dragged from the Customization Form.

Namespace: DevExpress.XtraVerticalGrid.Rows

Assembly: DevExpress.XtraVerticalGrid.v20.1.dll

Declaration

[DXCategory("Behavior")]
public BaseRow PressedRow { get; set; }
<DXCategory("Behavior")>
Public Property PressedRow As BaseRow

Property Value

Type Description
BaseRow

A BaseRow descendant representing a row whose header is pressed in the Customization Form.

Remarks

When the Customization Form is shown, end-users have the ability to use drag and drop techniques to temporarily hide grid rows and then make them visible again. If a row's VGridOptionsRow.AllowMoveToCustomizationForm option is enabled, users can drag the row header from the header panel to the Customization Form to hide the row. Dragging the header back to the row header panel makes the row visible again.

When a user starts dragging the row header from the Customization Form, the PressedRow property is initialized with a value representing the row whose header is dragged. So you can use this property to identify the dragged row and access its settings.

This property takes on a non-null value only when a dragging operation is initiated in the Customization Form. Its value can be analyzed and processed only in handlers provided for the native drag and drop events implemented by a vertical grid control. These are VGridControlBase.StartDragRow, VGridControlBase.ProcessDragRow and VGridControlBase.EndDragRow events. For instance, you can handle the VGridControlBase.EndDragRow event in order to determine whether a row dragged from the Customization Form is a category one and prohibit its dropping as a non top level row.

See Also