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

Represents a column in Details view, including its header, width constraints, visibility, and the field or cached item value displayed in its cells.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
[TypeConverter(typeof(ListViewColumnTypeConverter))]
public class ListViewDetailColumn : RadObject, IDisposable, ICustomTypeDescriptor, INotifyPropertyChanged

Inheritance: objectDisposableObjectRadObjectListViewDetailColumn

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChanged

Inherited Members RadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Creates a column with the specified name and header text.

C#
public ListViewDetailColumn(string name, string headerText)
Parameters:namestring

The name used to identify the column.

headerTextstring

The text displayed in the column header.

Creates a column whose header text matches its name.

C#
public ListViewDetailColumn(string name)
Parameters:namestring

The column name and displayed header text.

Fields

Identifies the AutoSizeMode property and provides its default best-fit mode.

C#
public static RadProperty AutoSizeModeProperty

Properties

Gets or sets the mode by which the column automatically adjusts its width after BestFit is executed.

C#
[Browsable(false)]
public ListViewBestFitColumnMode AutoSizeMode { get; set; }

Gets or sets a value indicating whether this column is current.

C#
[Browsable(true)]
public bool Current { get; set; }

Gets the name of the field of the bound item corresponding to this column.

C#
[Browsable(false)]
public string FieldName { get; }

Gets or sets the text that will be displayed in the header cells.

C#
[Browsable(true)]
public string HeaderText { get; set; }

Gets a value indicating whether the column is in bound mode.

C#
[Browsable(false)]
public bool IsDataBound { get; }

Gets the maximum width that the column can be resized to.

C#
[Browsable(true)]
public float MaxWidth { get; set; }

Gets the minimum width that the column can be resized to.

C#
[Browsable(true)]
public float MinWidth { get; set; }

Gets the name of the column. Must be unique for each column in the same RadListViewElement.

C#
[Browsable(true)]
public string Name { get; }

Gets the RadListViewElement that owns this column.

C#
[Browsable(false)]
public RadListViewElement Owner { get; }

Gets or sets a value indicating whether this column will be visible in DetailsView.

C#
[Browsable(true)]
public bool Visible { get; set; }

Gets the current width of the column.

C#
[Browsable(true)]
public float Width { get; set; }

Methods

Requests best-fit sizing for this column using its AutoSizeMode.

C#
public void BestFit()

The mode determines whether the header, data cells, both, or neither are measured. No sizing is performed when the column is detached, hidden, or not in Details view.

Selects a bound or unbound value accessor according to the owning list view's data-binding state.

C#
protected virtual void Initialize()