New to Telerik UI for WinForms? Start a free 30-day trial

Resizes only the dragged column, leaving the widths of other columns unchanged.

Definition

Constructors

Creates a non-stretching column-resize behavior for the specified list-view element.

C#
public ColumnResizingBehavior(RadListViewElement owner)
Parameters:ownerRadListViewElement

The element whose columns this behavior manages.

Methods

Leaves column widths unchanged because this behavior does not distribute available space.

C#
public override void CalculateColumnWidths(SizeF availableSize)
Parameters:availableSizeSizeF

The available size of the Details view.

Overrides: BaseColumnResizingBehavior.CalculateColumnWidths(SizeF)

Applies the offset to the active column without changing other column widths.

C#
public override bool Resize(int offset)
Parameters:offsetint

The signed width change requested by mouse movement.

Returns:

bool

true if the active column's width changed; otherwise, false.

Overrides: BaseColumnResizingBehavior.Resize(int)