Class
GridViewColumn

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class GridViewColumn : RadObject, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, IEditorProvider, INotifyPropertyChangingEx, IContextMenuProvider

Inheritance: objectDisposableObjectRadObjectGridViewColumn

Derived Classes: GridViewDataColumnGridViewGroupColumnGridViewIndentColumnGridViewRowHeaderColumnGridViewSelectColumn

Implements: IContextMenuProviderICustomTypeDescriptorIDisposableIEditorProviderINotifyPropertyChangedINotifyPropertyChangingEx

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.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)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

GridViewColumn()

Initializes a new instance of the GridViewColumn.

Declaration

cs-api-definition
public GridViewColumn()

GridViewColumn(string)

Initializes a new instance of the GridViewColumn.

Declaration

cs-api-definition
public GridViewColumn(string fieldName)

Parameters

fieldName

string

A string value referring to the unique name of the column.

GridViewColumn(string, string)

Initializes a new instance of the GridViewColumn.

Declaration

cs-api-definition
public GridViewColumn(string name, string fieldName)

Parameters

name

string

A string value referring to the unique name of the column.

fieldName

string

A string value referring to the field name to which the column is bound.

Fields

AllowGroupProperty

Declaration

cs-api-definition
public static RadProperty AllowGroupProperty

Field Value

RadProperty

AllowHideProperty

Declaration

cs-api-definition
public static RadProperty AllowHideProperty

Field Value

RadProperty

AllowReorderProperty

Declaration

cs-api-definition
public static RadProperty AllowReorderProperty

Field Value

RadProperty

AllowResizeProperty

Declaration

cs-api-definition
public static RadProperty AllowResizeProperty

Field Value

RadProperty

AllowSortProperty

Declaration

cs-api-definition
public static RadProperty AllowSortProperty

Field Value

RadProperty

AutoEllipsisProperty

Declaration

cs-api-definition
public static RadProperty AutoEllipsisProperty

Field Value

RadProperty

AutoSizeModeProperty

Declaration

cs-api-definition
public static RadProperty AutoSizeModeProperty

Field Value

RadProperty

DisableHTMLRenderingProperty

Declaration

cs-api-definition
public static RadProperty DisableHTMLRenderingProperty

Field Value

RadProperty

EnableExpressionEditorProperty

Declaration

cs-api-definition
public static RadProperty EnableExpressionEditorProperty

Field Value

RadProperty

ExpressionProperty

Declaration

cs-api-definition
public static RadProperty ExpressionProperty

Field Value

RadProperty

FieldNameProperty

Declaration

cs-api-definition
public static RadProperty FieldNameProperty

Field Value

RadProperty

HeaderImageProperty

Declaration

cs-api-definition
public static RadProperty HeaderImageProperty

Field Value

RadProperty

HeaderSvgImageProperty

Declaration

cs-api-definition
public static RadProperty HeaderSvgImageProperty

Field Value

RadProperty

HeaderTextAlignmentProperty

Declaration

cs-api-definition
public static RadProperty HeaderTextAlignmentProperty

Field Value

RadProperty

HeaderTextProperty

Declaration

cs-api-definition
public static RadProperty HeaderTextProperty

Field Value

RadProperty

ImageLayoutProperty

Declaration

cs-api-definition
public static RadProperty ImageLayoutProperty

Field Value

RadProperty

IsAutoGeneratedProperty

Declaration

cs-api-definition
public static RadProperty IsAutoGeneratedProperty

Field Value

RadProperty

IsCurrentProperty

Declaration

cs-api-definition
public static RadProperty IsCurrentProperty

Field Value

RadProperty

IsVisibleProperty

Declaration

cs-api-definition
public static RadProperty IsVisibleProperty

Field Value

RadProperty

MaxWidthProperty

Declaration

cs-api-definition
public static RadProperty MaxWidthProperty

Field Value

RadProperty

MinWidthProperty

Declaration

cs-api-definition
public static RadProperty MinWidthProperty

Field Value

RadProperty

NameProperty

Declaration

cs-api-definition
public static RadProperty NameProperty

Field Value

RadProperty

PinPositionProperty

Declaration

cs-api-definition
public static RadProperty PinPositionProperty

Field Value

RadProperty

ReadOnlyProperty

Declaration

cs-api-definition
public static RadProperty ReadOnlyProperty

Field Value

RadProperty

RenderWidthProperty

Declaration

cs-api-definition
public static RadProperty RenderWidthProperty

Field Value

RadProperty

RowSpanProperty

Declaration

cs-api-definition
public static RadProperty RowSpanProperty

Field Value

RadProperty

ShowEditorProperty

Declaration

cs-api-definition
public static RadProperty ShowEditorProperty

Field Value

RadProperty

StretchVerticallyProperty

Declaration

cs-api-definition
public static RadProperty StretchVerticallyProperty

Field Value

RadProperty

TagProperty

Declaration

cs-api-definition
public static RadProperty TagProperty

Field Value

RadProperty

TextAlignmentProperty

Declaration

cs-api-definition
public static RadProperty TextAlignmentProperty

Field Value

RadProperty

TextImageRelationProperty

Declaration

cs-api-definition
public static RadProperty TextImageRelationProperty

Field Value

RadProperty

VisibleInColumnChooserProperty

Declaration

cs-api-definition
public static RadProperty VisibleInColumnChooserProperty

Field Value

RadProperty

WidthProperty

Declaration

cs-api-definition
public static RadProperty WidthProperty

Field Value

RadProperty

WrapTextProperty

Declaration

cs-api-definition
public static RadProperty WrapTextProperty

Field Value

RadProperty

Properties

AllowGroup

Gets or sets a value indicating whether the user can group data based on the content of this column.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool AllowGroup { get; set; }

Property Value

bool

AllowHide

Gets or sets value indicating whether the user can hide the column.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool AllowHide { get; set; }

Property Value

bool

AllowReorder

Gets or sets a value indicating whether the user can reorder this column using the mouse.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool AllowReorder { get; set; }

Property Value

bool

AllowResize

Gets or sets value indicating whether the user can resize the column.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool AllowResize { get; set; }

Property Value

bool

AllowSort

Gets or sets a value indicating whether the user can sort the data in the OwnerTemplate based on the contents of this column.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool AllowSort { get; set; }

Property Value

bool

AutoEllipsis

Gets or sets the auto ellipsis.

Declaration

cs-api-definition
[Browsable(true)]
public bool AutoEllipsis { get; set; }

Property Value

bool

The auto ellipsis.

AutoSizeMode

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

Declaration

cs-api-definition
[Browsable(false)]
public BestFitColumnMode AutoSizeMode { get; set; }

Property Value

BestFitColumnMode

ConditionalFormattingObjectList

Gets list of BaseFormattingObject instances that define the currently applied conditional formatting of the data in the column.

Declaration

cs-api-definition
[Browsable(true)]
public virtual ConditionalFormattingObjectCollection ConditionalFormattingObjectList { get; }

Property Value

ConditionalFormattingObjectCollection

ContextMenu

Gets or sets the context menu assigned to the column.

Declaration

cs-api-definition
public RadDropDownMenu ContextMenu { get; set; }

Property Value

RadDropDownMenu

Implements IContextMenuProvider.ContextMenu

DisableHTMLRendering

Disable or Enable HTML-like text rendering in the column.

Declaration

cs-api-definition
[Browsable(true)]
public bool DisableHTMLRendering { get; set; }

Property Value

bool

DpiScale

Gets or sets the DPI scale.

Declaration

cs-api-definition
public SizeF DpiScale { get; }

Property Value

SizeF

The dpi scale.

EnableExpressionEditor

Gets or sets the value indicating if expression editor menu item will be available to the user.

Declaration

cs-api-definition
[Browsable(true)]
public bool EnableExpressionEditor { get; set; }

Property Value

bool

EventDispatcher

Gets the event dispatcher.

Declaration

cs-api-definition
protected EventDispatcher EventDispatcher { get; }

Property Value

EventDispatcher

The event dispatcher.

Expression

Gets or sets the expression used to calculate the values of this column.

Declaration

cs-api-definition
[Browsable(true)]
public string Expression { get; set; }

Property Value

string

FieldName

Gets or sets the name data source property or database column to which the GridViewDataColumn is bound.

Declaration

cs-api-definition
[Browsable(true)]
public string FieldName { get; set; }

Property Value

string

HeaderImage

Gets or set the ColumnInfo Header image.

Declaration

cs-api-definition
[Browsable(true)]
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image HeaderImage { get; set; }

Property Value

Image

HeaderSvgImage

Gets or set the ColumnInfo Header vector image.

Declaration

cs-api-definition
[Browsable(true)]
[TypeConverter(typeof(SvgImageTypeConverter))]
public virtual RadSvgImage HeaderSvgImage { get; set; }

Property Value

RadSvgImage

HeaderText

Gets or sets the caption text on the column's header cell.

Declaration

cs-api-definition
[Browsable(true)]
public virtual string HeaderText { get; set; }

Property Value

string

HeaderTextAlignment

Gets or sets a value indicating the position of the HeaderText within the header cell.

Declaration

cs-api-definition
[Browsable(true)]
public ContentAlignment HeaderTextAlignment { get; set; }

Property Value

ContentAlignment

ImageLayout

Gets or sets the image layout of the image inside the cells.

Declaration

cs-api-definition
[Browsable(true)]
public virtual ImageLayout ImageLayout { get; set; }

Property Value

ImageLayout

Index

Gets a value indicating the position of the column in the Columns collection of the OwnerTemplate.

Declaration

cs-api-definition
[Browsable(false)]
public int Index { get; }

Property Value

int

IsCurrent

Gets value indicating whether the column contains the currently selected cell in the OwnerTemplate.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsCurrent { get; set; }

Property Value

bool

IsDataBound

Gets a value indicating whether the column is bound to the data field referred by FieldName.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool IsDataBound { get; }

Property Value

bool

IsFieldNamePath

Gets whether is field name path.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsFieldNamePath { get; }

Property Value

bool

The is field name path.

IsGrouped

Gets a value indicating whether the data in the OwnerTemplate is grouped based on the content of this column.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool IsGrouped { get; }

Property Value

bool

IsPinned

Gets or sets value indicating whether the current column is pinned and cannot be moved from its location when a user scrolls horizontally.

Declaration

cs-api-definition
[Browsable(true)]
public bool IsPinned { get; set; }

Property Value

bool

IsSorted

Gets a boolean value indicating whether a sort order of data in the column is currently applied.

Declaration

cs-api-definition
[Browsable(false)]
public virtual bool IsSorted { get; }

Property Value

bool

Remarks

When multi-column sorting is applied, the column might be partially sorted.

IsVisible

Gets or sets a value indicating whether the column is visible.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool IsVisible { get; set; }

Property Value

bool

MaxWidth

Gets or sets the maximal width, in pixels, of the column.

Declaration

cs-api-definition
[Browsable(true)]
public int MaxWidth { get; set; }

Property Value

int

MinWidth

Gets or sets the minimum width, in pixels, of the column.

Declaration

cs-api-definition
[Browsable(true)]
public int MinWidth { get; set; }

Property Value

int

Name

Gets or sets a string value representing the column's unique name in the Columns collection of the OwnerTemplate.

Declaration

cs-api-definition
[Browsable(true)]
public virtual string Name { get; set; }

Property Value

string

OwnerTemplate

Gets the instance of GridViewTemplate which the column belongs to.

Declaration

cs-api-definition
[Browsable(false)]
public GridViewTemplate OwnerTemplate { get; }

Property Value

GridViewTemplate

PinPosition

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.

Declaration

cs-api-definition
public PinnedColumnPosition PinPosition { get; set; }

Property Value

PinnedColumnPosition

ReadOnly

Gets or sets a value indicating whether the user can edit the data in the column's cells.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool ReadOnly { get; set; }

Property Value

bool

RowSpan

Gets or sets the vertical span of the cells in that column (the height) in pixels. Relevant only in ColumnGroupsViewDefinition.

Declaration

cs-api-definition
[Browsable(true)]
public int RowSpan { get; set; }

Property Value

int

SortOrder

Gets or sets a value indicating the sort order of data in the column.

Declaration

cs-api-definition
[Browsable(true)]
public RadSortOrder SortOrder { get; set; }

Property Value

RadSortOrder

StretchVertically

Gets or sets a value indicating whether to stretch the column height vertically. Used with ColumnGroupsViewDefinition.

Declaration

cs-api-definition
[Browsable(true)]
public bool StretchVertically { get; set; }

Property Value

bool

Tag

Gets or sets the object that contains data about the column.

Declaration

cs-api-definition
[Browsable(false)]
public object Tag { get; set; }

Property Value

object

TextAlignment

Gets or sets a value indicating the position of the cell content within a column's cells.

Declaration

cs-api-definition
[Browsable(true)]
public virtual ContentAlignment TextAlignment { get; set; }

Property Value

ContentAlignment

TextImageRelation

Gets or sets a value indicating the TextImageRelation: ImageAboveText, ImageBeforeText, Overlay, TextAboveImage, and TextBeforeImage.

Declaration

cs-api-definition
[Browsable(true)]
public TextImageRelation TextImageRelation { get; set; }

Property Value

TextImageRelation

VisibleInColumnChooser

Gets or sets a value indicating whether the column will be visible in ColumnChooserElement.

Declaration

cs-api-definition
[Browsable(true)]
public virtual bool VisibleInColumnChooser { get; set; }

Property Value

bool

Remarks

Use this property if you want to hide columns from the user.

Width

Gets or sets the width of the column.

Declaration

cs-api-definition
[Browsable(true)]
public virtual int Width { get; set; }

Property Value

int

WrapText

Gets or sets value indicating whether the text in each cell in the column should be wrapped.

Declaration

cs-api-definition
[Browsable(true)]
public bool WrapText { get; set; }

Property Value

bool

Methods

BestFit()

Adjusts the column width to fit the contents of all cells in the column, including the header cell.

Declaration

cs-api-definition
public void BestFit()

CanDragToGroup()

Determines whether this column may be dragged onto the GroupBy panel.

Declaration

cs-api-definition
public bool CanDragToGroup()

Returns

bool

CanDragToGroup(GridViewTemplate)

Determines whether this column may be dragged onto the GroupBy panel.

Declaration

cs-api-definition
public bool CanDragToGroup(GridViewTemplate template)

Parameters

template

GridViewTemplate

Returns

bool

CreateConditionalFormattingForm()

Creates the conditional formatting form.

Declaration

cs-api-definition
protected virtual ConditionalFormattingForm CreateConditionalFormattingForm()

Returns

ConditionalFormattingForm

CreateContextMenuItems(RadDropDownMenu)

Declaration

cs-api-definition
protected virtual void CreateContextMenuItems(RadDropDownMenu menu)

Parameters

menu

RadDropDownMenu

DispatchEvent(KnownEvents, GridEventType, GridEventDispatchMode, object, object[])

Dispatches the event.

Declaration

cs-api-definition
protected virtual void DispatchEvent(KnownEvents id, GridEventType type, GridEventDispatchMode dispatchMode, object originator, object[] arguments)

Parameters

id

KnownEvents

The id.

type

GridEventType

The type.

dispatchMode

GridEventDispatchMode

The dispatch mode.

originator

object

The originator.

arguments

object[]

The arguments.

GetCellType(GridViewRowInfo)

Returns the type of cell element to be created for the specified row.

Declaration

cs-api-definition
public virtual Type GetCellType(GridViewRowInfo row)

Parameters

row

GridViewRowInfo

The specified row.

Returns

Type

The type of the cell to be created.

GetDefaultEditor()

Returns an editor instance of the default type for the editor provider.

Declaration

cs-api-definition
public virtual IInputEditor GetDefaultEditor()

Returns

IInputEditor

An object that implements IInputEditor interface.

Implements IEditorProvider.GetDefaultEditor()

GetDefaultEditorType()

Gets the default editor type for the editor provider.

Declaration

cs-api-definition
public virtual Type GetDefaultEditorType()

Returns

Type

The default type.

Implements IEditorProvider.GetDefaultEditorType()

GetDefaultGroupByExpression()

Retrieves the default group-by expression string for the column.

Declaration

cs-api-definition
public virtual string GetDefaultGroupByExpression()

Returns

string

The string value representing a group-by expression with default settings.

GetDefaultMinWidth()

Gets a value indicating default minimum width for the inherited column type. If not overridden in inheritor class it defaults to 5.

Declaration

cs-api-definition
protected virtual int GetDefaultMinWidth()

Returns

int

GetEventInfo(RadProperty, out GridEventDispatchMode)

Gets the event info.

Declaration

cs-api-definition
protected virtual GridEventType GetEventInfo(RadProperty property, out GridEventDispatchMode dispatchMode)

Parameters

property

RadProperty

The property.

dispatchMode

GridEventDispatchMode

The dispatch mode.

Returns

GridEventType

Initialize()

Initializes the column.

Declaration

cs-api-definition
protected virtual void Initialize()

Remarks

This method is called when the column is associated with GridViewTemplate.

InitializeEditor(IInputEditor)

Initializes a specified editor.

Declaration

cs-api-definition
public virtual void InitializeEditor(IInputEditor editor)

Parameters

editor

IInputEditor

An object that implements IInputEditor interface.

Implements IEditorProvider.InitializeEditor(IInputEditor)

IsPropertyCancelable(RadPropertyMetadata)

Determines whether the specified property may be canceled.

Declaration

cs-api-definition
protected override bool IsPropertyCancelable(RadPropertyMetadata metadata)

Parameters

metadata

RadPropertyMetadata

The metadata associated with the property change.

Returns

bool

Overrides RadObject.IsPropertyCancelable(RadPropertyMetadata)

MergeMenus(IContextMenuManager, params object[])

Merges the context menu.

Declaration

cs-api-definition
public RadDropDownMenu MergeMenus(IContextMenuManager contextMenuManager, params object[] parameters)

Parameters

contextMenuManager

IContextMenuManager

The IContextMenuManager to merge with.

parameters

object[]

merge parameters.

Returns

RadDropDownMenu

The merged context menu, if successful.

Implements IContextMenuProvider.MergeMenus(IContextMenuManager, params object[])

MergeMenus(IContextMenuProvider, params object[])

Merges the context menu.

Declaration

cs-api-definition
public RadDropDownMenu MergeMenus(IContextMenuProvider contextMenuProvider, params object[] parameters)

Parameters

contextMenuProvider

IContextMenuProvider

The IContextMenuProvider to merge with.

parameters

object[]

merge parameters.

Returns

RadDropDownMenu

The merged context menu, if successful.

Implements IContextMenuProvider.MergeMenus(IContextMenuProvider, params object[])

MergeMenus(RadDropDownMenu, params object[])

Merges the context menu.

Declaration

cs-api-definition
public RadDropDownMenu MergeMenus(RadDropDownMenu contextMenu, params object[] parameters)

Parameters

contextMenu

RadDropDownMenu

The RadDropDownMenu to merge with.

parameters

object[]

merge parameters.

Returns

RadDropDownMenu

The merged context menu, if successful.

Implements IContextMenuProvider.MergeMenus(RadDropDownMenu, params object[])

OnNotifyPropertyChanging(PropertyChangingEventArgsEx)

Declaration

cs-api-definition
protected virtual void OnNotifyPropertyChanging(PropertyChangingEventArgsEx e)

Parameters

e

PropertyChangingEventArgsEx

OnNotifyPropertyChanging(string)

Declaration

cs-api-definition
protected void OnNotifyPropertyChanging(string propertyName)

Parameters

propertyName

string

OnPropertyChanged(RadPropertyChangedEventArgs)

Raises the RadPropertyChanged event and the standard .NET PropertyChanged event to notify subscribers of property value changes.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

The RadPropertyChangedEventArgs containing information about the property change.

Overrides RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)

OnPropertyChanging(RadPropertyChangingEventArgs)

Raises the RadPropertyChanging event, allowing subscribers to be notified before a property value changes and potentially cancel the change.

Declaration

cs-api-definition
protected override void OnPropertyChanging(RadPropertyChangingEventArgs e)

Parameters

e

RadPropertyChangingEventArgs

Overrides RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)

ShowContextMenu()

Shows the context menu.

Declaration

cs-api-definition
public virtual void ShowContextMenu()

Sort(RadSortOrder)

Sorts with the specified sort order.

Declaration

cs-api-definition
public virtual void Sort(RadSortOrder sortOrder)

Parameters

sortOrder

RadSortOrder

The sort order.

Sort(RadSortOrder, bool)

Sorts the specified sort order.

Declaration

cs-api-definition
public bool Sort(RadSortOrder sortOrder, bool multiSortMode)

Parameters

sortOrder

RadSortOrder

The sort order.

multiSortMode

bool

if set to true [multi sort mode].

Returns

bool

ToString()

Returns a string representation of the column.

Declaration

cs-api-definition
public override string ToString()

Returns

string

The string representation for the column.

Overrides object.ToString()

ToggleSortOrder()

Toggles the column sort order.

Declaration

cs-api-definition
protected void ToggleSortOrder()

Events

PropertyChanging

Occurs when a property value is changing.

Declaration

cs-api-definition
public event PropertyChangingEventHandlerEx PropertyChanging

Event Value

PropertyChangingEventHandlerEx

Implements INotifyPropertyChangingEx.PropertyChanging

In this article
DefinitionConstructorsGridViewColumn()GridViewColumn(string)GridViewColumn(string, string)FieldsAllowGroupPropertyAllowHidePropertyAllowReorderPropertyAllowResizePropertyAllowSortPropertyAutoEllipsisPropertyAutoSizeModePropertyDisableHTMLRenderingPropertyEnableExpressionEditorPropertyExpressionPropertyFieldNamePropertyHeaderImagePropertyHeaderSvgImagePropertyHeaderTextAlignmentPropertyHeaderTextPropertyImageLayoutPropertyIsAutoGeneratedPropertyIsCurrentPropertyIsVisiblePropertyMaxWidthPropertyMinWidthPropertyNamePropertyPinPositionPropertyReadOnlyPropertyRenderWidthPropertyRowSpanPropertyShowEditorPropertyStretchVerticallyPropertyTagPropertyTextAlignmentPropertyTextImageRelationPropertyVisibleInColumnChooserPropertyWidthPropertyWrapTextPropertyPropertiesAllowGroupAllowHideAllowReorderAllowResizeAllowSortAutoEllipsisAutoSizeModeConditionalFormattingObjectListContextMenuDisableHTMLRenderingDpiScaleEnableExpressionEditorEventDispatcherExpressionFieldNameHeaderImageHeaderSvgImageHeaderTextHeaderTextAlignmentImageLayoutIndexIsCurrentIsDataBoundIsFieldNamePathIsGroupedIsPinnedIsSortedIsVisibleMaxWidthMinWidthNameOwnerTemplatePinPositionReadOnlyRowSpanSortOrderStretchVerticallyTagTextAlignmentTextImageRelationVisibleInColumnChooserWidthWrapTextMethodsBestFit()CanDragToGroup()CanDragToGroup(GridViewTemplate)CreateConditionalFormattingForm()CreateContextMenuItems(RadDropDownMenu)DispatchEvent(KnownEvents, GridEventType, GridEventDispatchMode, object, object[])GetCellType(GridViewRowInfo)GetDefaultEditor()GetDefaultEditorType()GetDefaultGroupByExpression()GetDefaultMinWidth()GetEventInfo(RadProperty, out GridEventDispatchMode)Initialize()InitializeEditor(IInputEditor)IsPropertyCancelable(RadPropertyMetadata)MergeMenus(IContextMenuManager, params object[])MergeMenus(IContextMenuProvider, params object[])MergeMenus(RadDropDownMenu, params object[])OnNotifyPropertyChanging(PropertyChangingEventArgsEx)OnNotifyPropertyChanging(string)OnPropertyChanged(RadPropertyChangedEventArgs)OnPropertyChanging(RadPropertyChangingEventArgs)ShowContextMenu()Sort(RadSortOrder)Sort(RadSortOrder, bool)ToString()ToggleSortOrder()EventsPropertyChanging
Not finding the help you need?
Contact Support