Click or drag to resize
GridViewColumn Class
Abstract class, representing the base for all types of columns in RadGridView A special inheritor is the GridViewDataColumn which is base for all data-bound columns. Implements IComparable and INotifyPropertyChanged interfaces
Inheritance Hierarchy

Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView (in Telerik.WinControls.GridView.dll) Version: 2018.3.1016.40 (2018.3.1016.40)
Syntax
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public abstract class GridViewColumn : RadObject, 
	IEditorProvider, INotifyPropertyChangingEx

The GridViewColumn type exposes the following members.

Constructors
  NameDescription
Public methodGridViewColumn
Initializes a new instance of the GridViewColumn.
Public methodGridViewColumn(String)
Initializes a new instance of the GridViewColumn.
Public methodGridViewColumn(String, String)
Initializes a new instance of the GridViewColumn.
Top
Properties
  NameDescription
Public propertyAllowGroup
Gets or sets a value indicating whether the user can group data based on the content of this column.
Public propertyAllowHide
Gets or sets value indicating whether the user can hide the column.
Public propertyAllowReorder
Gets or sets a value indicating whether the user can reorder this column using the mouse.
Public propertyAllowResize
Gets or sets value indicating whether the user can resize the column.
Public propertyAllowSort
Gets or sets a value indicating whether the user can sort the data in the OwnerTemplate based on the contents of this column.
Public propertyAutoEllipsis
Public propertyAutoSizeMode
Gets or sets the mode by which the column automatically adjusts its width after BestFit is executed.
Public propertyBindingContext
Gets or sets the BindingContext for the object.
(Inherited from RadObject.)
Protected propertyBitState
Gets the RadBitVector64 structure that holds all the bit states of the object.
(Inherited from DisposableObject.)
Public propertyConditionalFormattingObjectList
Gets list of BaseFormattingObject instances that define the currently applied conditional formatting of the data in the column.
Public propertyDisableHTMLRendering
Disable or Enable HTML-like text rendering in the column.
Public propertyDpiScale
Public propertyEnableExpressionEditor
Gets or sets the value indicating if expression editor menu item will be available to the user.
Protected propertyEventDispatcher
Protected propertyEvents
Provides a simple list of delegates.
(Inherited from DisposableObject.)
Public propertyExpression
Gets or sets the expression used to calculate the values of this column.
Public propertyFieldName
Gets or sets the name data source property or database column to which the GridViewDataColumn is bound.
Public propertyHeaderImage
Gets or set the ColumnInfo Header image.
Public propertyHeaderText
Gets or sets the caption text on the column's header cell.
Public propertyHeaderTextAlignment
Gets or sets a value indicating the position of the HeaderText within the header cell.
Public propertyImageLayout
Gets or sets the image layout of the image inside the cells.
Public propertyIndex
Gets a value indicating the position of the column in the Columns collection of the OwnerTemplate.
Public propertyIsAutoGenerated
Gets value indicating whether the current column is automatically created when the RadGridView is being bound to a data source.
Public propertyIsCurrent
Gets value indicating whether the column contains the currently selected cell in the OwnerTemplate.
Public propertyIsDataBound
Gets a value indicating whether the column is bound to the data field referred by FieldName.
Public propertyIsDesignMode
Determines whether the element is in design mode.
(Inherited from RadObject.)
Public propertyIsDisposed
Determines whether the object is already disposed.
(Inherited from DisposableObject.)
Public propertyIsDisposing
Determines whether the object is in a process of being disposed of.
(Inherited from DisposableObject.)
Public propertyIsFieldNamePath
Public propertyIsGrouped
Gets a value indicating whether the data in the OwnerTemplate is grouped based on the content of this column.
Public propertyIsPinned
Gets or sets value indicating whether the current column is pinned and cannot be moved from its location when a user scrolls horizontally.
Public propertyIsSorted
Gets a boolean value indicating whether a sort order of data in the column is currently applied.
Public propertyIsVisible
Gets or sets a value indicating whether the column is visible.
Public propertyMaxWidth
Gets or sets the maximal width, in pixels, of the column.
Public propertyMinWidth
Gets or sets the minimum width, in pixels, of the column.
Public propertyName
Gets or sets a string value representing the column's unique name in the Columns collection of the OwnerTemplate.
Public propertyOwnerTemplate
Gets the instance of GridViewTemplate which the column belongs to.
Public propertyPinPosition
Gets or sets the pin position for the row. When the column is pinned, it cannot be moved from its location when a user scrolls horizontally.
Public propertyPropertyFilter
Gets or sets a Filter instance, used to filter the ICustomPropertyDescriptor.GetProperties collection.
(Inherited from RadObject.)
Public propertyPropertyValues
Gets a collection containing property values.
(Inherited from RadObject.)
Public propertyRadObjectType
Gets the RadObjectType which is associated with this system type.
(Inherited from RadObject.)
Public propertyReadOnly
Gets or sets a value indicating whether the user can edit the data in the column's cells.
Public propertyRowSpan
Gets or sets the vertical span of the cells in that column (the height) in pixels. Relevant only in ColumnGroupsViewDefinition.
Public propertySortOrder
Gets or sets a value indicating the sort order of data in the column.
Public propertyStretchVertically
Gets or sets a value indicating whether to stretch the column height vertically. Used with ColumnGroupsViewDefinition.
Public propertyTag
Gets or sets the object that contains data about the column.
Public propertyTextAlignment
Gets or sets a value indicating the position of the cell content within a column's cells.
Public propertyTextImageRelation
Gets or sets a value indicating the TextImageRelation: ImageAboveText, ImageBeforeText, Overlay, TextAboveImage, and TextBeforeImage.
Public propertyVisibleInColumnChooser
Gets or sets a value indicating whether the column will be visible in ColumnChooserElement.
Public propertyWidth
Gets or sets the width of the column.
Public propertyWrapText
Gets or sets value indicating whether the text in each cell in the column should be wrapped.
Top
Methods
  NameDescription
Protected methodAddStylePropertySetting
Registers a style setting for this instance.
(Inherited from RadObject.)
Public methodBestFit
Adjusts the column width to fit the contents of all cells in the column, including the header cell.
Public methodBindProperty
Binds the specified property to a property of the provided binding source object.
(Inherited from RadObject.)
Public methodCanDragToGroup
Determines whether this column may be dragged onto the GroupBy panel.
Public methodCanDragToGroup(GridViewTemplate)
Determines whether this column may be dragged onto the GroupBy panel.
Protected methodCanRaisePropertyChangeNotifications
Determines whether the object can raise PropertyChanging and PropertyChanged notifications. Current implementation checks whether the object is disposing or is already disposed of.
(Inherited from RadObject.)
Protected methodClearPropertyStore
Removes all references to external property modifiers such as property bindings, style settings and animations.
(Inherited from RadObject.)
Protected methodCoerceValue
Allows inheritors to force a coersion of the current calculated value for the given property.
(Inherited from RadObject.)
Protected methodDispatchEvent
Public methodDispose
Releases all resources associated with this object.
(Inherited from DisposableObject.)
Protected methodDispose(Boolean)
Performs the actual Dispose logic.
(Inherited from DisposableObject.)
Protected methodDisposeManagedResources
(Inherited from RadObject.)
Protected methodDisposeUnmanagedResources
Releases any UNMANAGED resources used by this object. NOTE: If you declare some unmanaged resources in your class, you should override its finalizer and put disposing logic there also.
(Inherited from DisposableObject.)
Protected methodGetBitState
Gets the current bit state for the object, defined by the provided key.
(Inherited from DisposableObject.)
Public methodGetCellType
Returns the type of cell element to be created for the specified row.
Public methodGetDefaultEditor
Returns an editor instance of the default type for the editor provider.
Public methodGetDefaultEditorType
Gets the default editor type for the editor provider.
Public methodGetDefaultGroupByExpression
Retrieves the default group-by expression string for the column.
Protected methodGetDefaultMinWidth
Gets a value indicating default minimum width for the inherited column type. If not overridden in inheritor class it defaults to 5.
Protected methodGetDefaultValue
Allows inheritors to provide custom default value.
(Inherited from RadObject.)
Protected methodGetEventInfo
Protected methodGetInheritedValue
Searches up in the chain of InheritanceParents for a value for the specified property.
(Inherited from RadObject.)
Public methodGetPropertyValue
Gets the RadPropertyValue structure that holds information about the specified property's effective value for this instance. May be null if no effective value is recorded.
(Inherited from RadObject.)
Public methodGetRegisteredRadProperty
Gets the registered property with the specified name.
(Inherited from RadObject.)
Public methodGetValue
Retrieves the current value for the specified property.
(Inherited from RadObject.)
Public methodGetValueSource
Gets the source of the current value for the specified property.
(Inherited from RadObject.)
Protected methodInitialize
Initializes the column.
Public methodInitializeEditor
Initializes a specified editor.
Protected methodIsPropertyCancelable (Overrides RadObjectIsPropertyCancelable(RadPropertyMetadata).)
Protected methodOnBitStateChanged
Notifies the object for a change in its bit state.
(Inherited from DisposableObject.)
Protected methodOnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event.
(Inherited from RadObject.)
Protected methodOnNotifyPropertyChanged(String)
Raises the PropertyChanged event.
(Inherited from RadObject.)
Protected methodOnNotifyPropertyChanging(String)
Protected methodOnNotifyPropertyChanging(PropertyChangingEventArgsEx)
Protected methodOnPropertyChanged (Overrides RadObjectOnPropertyChanged(RadPropertyChangedEventArgs).)
Protected methodOnPropertyChanging (Overrides RadObjectOnPropertyChanging(RadPropertyChangingEventArgs).)
Protected methodPerformDispose
Performs the core resources release logic.
(Inherited from DisposableObject.)
Public methodRemoveStylePropertySetting(IPropertySetting)
Called when element style condition changes. This method is used internally.
(Inherited from RadObject.)
Public methodRemoveStylePropertySetting(RadProperty)
Called when element style condition changes. This method is used internally.
(Inherited from RadObject.)
Public methodResetValue(RadProperty)
Resets the current value of the specified property. This method will remove any effective value modifier (such as style or animation setting) for the specified property.
(Inherited from RadObject.)
Public methodResetValue(RadProperty, ValueResetFlags)
Resets the current value of the specified property using the provided flags.
(Inherited from RadObject.)
Protected methodResetValueCore
Resets the specified property value, using the provided reset flags.
(Inherited from RadObject.)
Public methodResumePropertyNotifications
Resumes property notifications after a previous SuspendPropertyNotifications call.
(Inherited from RadObject.)
Protected methodSetBitState
Applies the specified boolean value to the BitVector of the object.
(Inherited from DisposableObject.)
Public methodSetDefaultValueOverride
Applies the provided value as an override of the Default value provided by the specified property's metadata.
(Inherited from RadObject.)
Public methodSetValue
Applies the provided value as Local for the specified property.
(Inherited from RadObject.)
Public methodSetValueAtDesignTime
Applies the specified value as Local for the desired property and raises the flag IsLocalValueSetAtDesignTime for that property. All design-time direct property modifications (e.g. item.Text = "Item1") should be done through this method for the property to be properly serialized. If a property is modified through a property grid, the custom property descriptor will automatically apply this logic. This method is used internally.
(Inherited from RadObject.)
Protected methodSetValueCore
Performs the core logic of updating property value.
(Inherited from RadObject.)
Public methodShouldSerializeProperty
Determines whether the property defined by the provided property descriptor should be serialized.
(Inherited from RadObject.)
Public methodSort
Sorts the specified sort order.
Public methodSuspendPropertyNotifications
Allows PropertyChanging and PropertyChanged notifications to be temporary suspended.
(Inherited from RadObject.)
Public methodToString
Returns a string representation of the column.
(Overrides ObjectToString.)
Public methodUnbindProperty
Removes the binding for the specified property.
(Inherited from RadObject.)
Public methodUpdateValue
Forces re-evaluation of the current value for the specified property.
(Inherited from RadObject.)
Protected methodUpdateValueCore
Performs the core value update logic.
(Inherited from RadObject.)
Top
Events
  NameDescription
Public eventDisposed (Inherited from DisposableObject.)
Public eventDisposing (Inherited from DisposableObject.)
Public eventPropertyChanged
Occurs when a property of an object changes. Note: if a property which is not a RadProperty changes, the developer is responsible for firing this event by using the INotifyPropertyChanged API.
(Inherited from RadObject.)
Public eventPropertyChanging
Public eventRadPropertyChanged
Occurs when a property of a RadObject changes.
(Inherited from RadObject.)
Public eventRadPropertyChanging
Occurs prior to property of a RadObject changes.
(Inherited from RadObject.)
Top
Fields
Extension Methods
  NameDescription
Public Extension MethodCheckAccessOverloaded. (Defined by DispatcherExtensions.)
Public Extension MethodCheckAccessOverloaded. (Defined by DispatcherExtensions.)
Public Extension MethodCheckAccessOverloaded. (Defined by DispatcherExtensions.)
Public Extension MethodClearIfNoBindingAndSet
Clears if set.
(Defined by CommonExtensions.)
Public Extension MethodClearIfSet
Clears the property if a value has been set.
(Defined by CommonExtensions.)
Public Extension MethodIsLocalValueSet
Determines whether the specified dependency property local value is set.
(Defined by CommonExtensions.)
Public Extension MethodSetIfDifferent
Sets the value of the dependencyProperty property if it's hasn't that value currently.
(Defined by CommonExtensions.)
Top
See Also