New to Telerik UI for WinFormsStart a free 30-day trial

Provides data for the ColumnWidthChanging event.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class VirtualGridColumnWidthChangingEventArgs : VirtualGridColumnEventArgs

Inheritance: objectEventArgsVirtualGridEventArgsVirtualGridColumnEventArgsVirtualGridColumnWidthChangingEventArgs

Inherited Members VirtualGridColumnEventArgs.ColumnIndexVirtualGridEventArgs.ViewInfoEventArgs.Empty

Constructors

Initializes a new instance of the VirtualGridColumnWidthChangingEventArgs class.

C#
public VirtualGridColumnWidthChangingEventArgs(int columnIndex, int oldWidth, int newWidth, VirtualGridViewInfo viewInfo)
Parameters:columnIndexint

Index of the column.

oldWidthint

The old width.

newWidthint

The new width.

viewInfoVirtualGridViewInfo

The view info.

Properties

Gets or sets a value indicating whether the event is canceled.

C#
public bool Cancel { get; set; }

Gets the new column width.

C#
public int NewWidth { get; }

Gets the old column width.

C#
public int OldWidth { get; }