ClassGridViewColumn
This is a dependency object used to store column's specific data.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.GridView.dll
Syntax:
public class GridViewColumn : FrameworkContentElement, IFieldDescriptor, INotifyPropertyChanged
Inheritance: objectGridViewColumn
Derived Classes:
Implements:
Constructors
GridViewColumn()
Declaration
public GridViewColumn()
Fields
BackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly DependencyProperty BackgroundProperty
Field Value
DependencyProperty
CellEditTemplateProperty
Identifies the CellEditTemplateProperty property.
Declaration
public static readonly DependencyProperty CellEditTemplateProperty
Field Value
DependencyProperty
CellEditTemplateSelectorProperty
Identifies the CellEditTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty CellEditTemplateSelectorProperty
Field Value
DependencyProperty
CellStyleProperty
Identifies the CellStyle dependency property.
Declaration
public static readonly DependencyProperty CellStyleProperty
Field Value
DependencyProperty
CellStyleSelectorProperty
Identifies the CellStyleSelector dependency property.
Declaration
public static readonly DependencyProperty CellStyleSelectorProperty
Field Value
DependencyProperty
CellTemplateProperty
Identifies the CellTemplate property.
Declaration
public static readonly DependencyProperty CellTemplateProperty
Field Value
DependencyProperty
CellTemplateSelectorProperty
Identifies the CellTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty CellTemplateSelectorProperty
Field Value
DependencyProperty
DisplayIndexProperty
Identifies the DisplayIndex dependency property.
Declaration
public static readonly DependencyProperty DisplayIndexProperty
Field Value
DependencyProperty
DistinctValuesDisplayModeProperty
Identifies the DistinctValuesDisplayMode dependency property.
Declaration
public static readonly DependencyProperty DistinctValuesDisplayModeProperty
Field Value
DependencyProperty
DistinctValuesSearchModeProperty
Identifies the DistinctValuesSearchMode dependency property.
Declaration
public static readonly DependencyProperty DistinctValuesSearchModeProperty
Field Value
DependencyProperty
EditTriggersProperty
Identifies the EditTriggers dependency property.
Declaration
public static readonly DependencyProperty EditTriggersProperty
Field Value
DependencyProperty
EnableDistinctValuesFilteringProperty
Identifies the EnableDistinctValuesFiltering dependency property.
Declaration
public static readonly DependencyProperty EnableDistinctValuesFilteringProperty
Field Value
DependencyProperty
FilterMemberTypeProperty
Identifies the FilterMemberType dependency property.
Declaration
public static readonly DependencyProperty FilterMemberTypeProperty
Field Value
DependencyProperty
FilteringControlStyleProperty
Identifies the FilteringControlStyle dependency property.
Declaration
public static readonly DependencyProperty FilteringControlStyleProperty
Field Value
DependencyProperty
FooterCellStyleProperty
Identifies the FooterCellStyle dependency property.
Declaration
public static readonly DependencyProperty FooterCellStyleProperty
Field Value
DependencyProperty
FooterProperty
Identifies the Footer dependency property.
Declaration
public static readonly DependencyProperty FooterProperty
Field Value
DependencyProperty
FooterTextAlignmentProperty
Gets or sets a value that indicates the horizontal alignment of header text content Affects all the header cell in the column.
Declaration
public static readonly DependencyProperty FooterTextAlignmentProperty
Field Value
DependencyProperty
GroupFooterCellStyleProperty
Identifies the GroupFooterCellStyle dependency property.
Declaration
public static readonly DependencyProperty GroupFooterCellStyleProperty
Field Value
DependencyProperty
GroupFooterCellStyleSelectorProperty
Identifies the GroupFooterCellStyleSelector dependency property.
Declaration
public static readonly DependencyProperty GroupFooterCellStyleSelectorProperty
Field Value
DependencyProperty
GroupFooterTemplateProperty
Identifies the GroupFooterTemplate property.
Declaration
public static readonly DependencyProperty GroupFooterTemplateProperty
Field Value
DependencyProperty
GroupFooterTemplateSelectorProperty
Identifies the GroupFooterTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty GroupFooterTemplateSelectorProperty
Field Value
DependencyProperty
GroupHeaderTemplateProperty
Identifies the GroupFooterTemplateProperty property.
Declaration
public static readonly DependencyProperty GroupHeaderTemplateProperty
Field Value
DependencyProperty
GroupHeaderTemplateSelectorProperty
Identifies the GroupHeaderTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty GroupHeaderTemplateSelectorProperty
Field Value
DependencyProperty
HeaderCellStyleProperty
Identifies the HeaderCellStyle dependency property.
Declaration
public static readonly DependencyProperty HeaderCellStyleProperty
Field Value
DependencyProperty
HeaderProperty
Identifies the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
DependencyProperty
HeaderTextAlignmentProperty
Gets or sets a value that indicates the horizontal alignment of header text content Affects all the header cell in the column.
Declaration
public static readonly DependencyProperty HeaderTextAlignmentProperty
Field Value
DependencyProperty
HeaderTextDecorationsProperty
Identifies the HeaderTextDecorations dependency property.
Declaration
public static readonly DependencyProperty HeaderTextDecorationsProperty
Field Value
DependencyProperty
HeaderTextTrimmingProperty
Identifies the HeaderTextTrimming property.
Declaration
public static readonly DependencyProperty HeaderTextTrimmingProperty
Field Value
DependencyProperty
The identifier for the HeaderTextTrimming property.
HeaderTextWrappingProperty
Identifies the HeaderTextWrapping property.
Declaration
public static readonly DependencyProperty HeaderTextWrappingProperty
Field Value
DependencyProperty
The identifier for the HeaderTextWrapping property.
IsCustomSortingEnabledProperty
Identifies the IsCustomSortingEnabled dependency property.
Declaration
public static readonly DependencyProperty IsCustomSortingEnabledProperty
Field Value
DependencyProperty
IsFilterableProperty
Identifies the IsFilterable dependency property.
Declaration
public static readonly DependencyProperty IsFilterableProperty
Field Value
DependencyProperty
IsFilteringDeferredProperty
Identifies the IsFilteringDeferred dependency property.
Declaration
public static readonly DependencyProperty IsFilteringDeferredProperty
Field Value
DependencyProperty
IsFrozenProperty
Identifies the IsFrozen readonly dependency property.
Declaration
public static readonly DependencyProperty IsFrozenProperty
Field Value
DependencyProperty
IsGroupableProperty
Identifies the IsGroupable dependency property.
Declaration
public static readonly DependencyProperty IsGroupableProperty
Field Value
DependencyProperty
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
DependencyProperty
IsReorderableProperty
Identifies the IsReorderable dependency property.
Declaration
public static readonly DependencyProperty IsReorderableProperty
Field Value
DependencyProperty
IsResizableProperty
Identifies the IsResizable dependency property.
Declaration
public static readonly DependencyProperty IsResizableProperty
Field Value
DependencyProperty
IsSelectedProperty
Identifies the IsSelected dependency property.
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
DependencyProperty
IsSortableProperty
Identifies the IsSortable dependency property.
Declaration
public static readonly DependencyProperty IsSortableProperty
Field Value
DependencyProperty
IsVisibleProperty
Identifies the IsVisible dependency property.
Declaration
public static readonly DependencyProperty IsVisibleProperty
Field Value
DependencyProperty
MaxWidthProperty
The DependencyProperty that represents the MaxWidth property.
Declaration
public static readonly DependencyProperty MaxWidthProperty
Field Value
DependencyProperty
MinWidthProperty
The DependencyProperty that represents the MinWidth property.
Declaration
public static readonly DependencyProperty MinWidthProperty
Field Value
DependencyProperty
OptimizeDistinctFilterQueryProperty
Identifies the OptimizeDistinctFilterQuery dependency property.
Declaration
public static readonly DependencyProperty OptimizeDistinctFilterQueryProperty
Field Value
DependencyProperty
ShouldGenerateFieldFilterEditorsProperty
Identifies the ShouldGenerateFieldFilterEditors dependency property.
Declaration
public static readonly DependencyProperty ShouldGenerateFieldFilterEditorsProperty
Field Value
DependencyProperty
ShowColumnWhenGroupedProperty
Identifies the ShowColumnWhenGrouped dependency property.
Declaration
public static readonly DependencyProperty ShowColumnWhenGroupedProperty
Field Value
DependencyProperty
ShowDistinctFiltersProperty
Identifies the ShowDistinctFilters dependency property.
Declaration
public static readonly DependencyProperty ShowDistinctFiltersProperty
Field Value
DependencyProperty
ShowFieldFiltersProperty
Identifies the ShowFieldFilters dependency property.
Declaration
public static readonly DependencyProperty ShowFieldFiltersProperty
Field Value
DependencyProperty
ShowFilterButtonProperty
Identifies the ShowFilterButton dependency property.
Declaration
public static readonly DependencyProperty ShowFilterButtonProperty
Field Value
DependencyProperty
ShowToolTipOnTrimmedTextProperty
Identifies the ShowToolTipOnTrimmedText dependency property.
Declaration
public static readonly DependencyProperty ShowToolTipOnTrimmedTextProperty
Field Value
DependencyProperty
SortingIndexProperty
Identifies the SortingIndex readonly dependency property.
Declaration
public static readonly DependencyProperty SortingIndexProperty
Field Value
DependencyProperty
SortingStateChangedEvent
Identifies the SortingStateChanged routed event.
Declaration
public static readonly RoutedEvent SortingStateChangedEvent
Field Value
RoutedEvent
SortingStateProperty
Identifies the SortingState dependency property.
Declaration
public static readonly DependencyProperty SortingStateProperty
Field Value
DependencyProperty
TabStopModeProperty
Identifies the TabStopMode dependency property.
Declaration
public static readonly DependencyProperty TabStopModeProperty
Field Value
DependencyProperty
TextAlignmentProperty
Gets or sets a value that indicates the horizontal alignment of text content Affects all the cells in the column.
Declaration
public static readonly DependencyProperty TextAlignmentProperty
Field Value
DependencyProperty
TextDecorationsProperty
Identifies the TextDecorations dependency property.
Declaration
public static readonly DependencyProperty TextDecorationsProperty
Field Value
DependencyProperty
TextTrimmingProperty
Identifies the TextTrimming property.
Declaration
public static readonly DependencyProperty TextTrimmingProperty
Field Value
DependencyProperty
The identifier for the TextTrimming property.
TextWrappingProperty
Identifies the TextWrapping property.
Declaration
public static readonly DependencyProperty TextWrappingProperty
Field Value
DependencyProperty
The identifier for the TextWrapping property.
ToolTipShowDurationProperty
Identifies the ToolTipShowDurationProperty property.
Declaration
public static readonly DependencyProperty ToolTipShowDurationProperty
Field Value
DependencyProperty
ToolTipTemplateProperty
Identifies the ToolTipTemplateProperty property.
Declaration
public static readonly DependencyProperty ToolTipTemplateProperty
Field Value
DependencyProperty
ToolTipTemplateSelectorProperty
Identifies the ToolTipTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty ToolTipTemplateSelectorProperty
Field Value
DependencyProperty
WidthProperty
The DependencyProperty that represents the Width property.
Declaration
public static readonly DependencyProperty WidthProperty
Field Value
DependencyProperty
Properties
ActualWidth
Gets the current width of the column in pixels.
Declaration
public double ActualWidth { get; }
Property Value
The width of the column in pixels. Returns 0 if the column has not been added to a RadGridView.
AggregateFunctions
Gets an observable collection of the aggregate functions defined for the column.
Declaration
public AggregateFunctionCollection AggregateFunctions { get; }
Property Value
The aggregate functions.
Background
Gets or sets the color behind the content of the column.
Declaration
public Brush Background { get; set; }
Property Value
Brush
The column background.
CellEditTemplate
Gets or sets the data template for the cell in edit mode.
Declaration
public DataTemplate CellEditTemplate { get; set; }
Property Value
DataTemplate
Remarks
Please refer to CellEditTemplate for more information on the property.
CellEditTemplateSelector
Gets or sets the data template selector for the cell in edit mode.
Declaration
public DataTemplateSelector CellEditTemplateSelector { get; set; }
Property Value
DataTemplateSelector
CellStyle
Gets or sets the style to be applied for the cells in that column.
Declaration
public Style CellStyle { get; set; }
Property Value
Style
The cell style.
CellStyleSelector
Gets or sets the style selector for the cell.
Declaration
public StyleSelector CellStyleSelector { get; set; }
Property Value
StyleSelector
CellTemplate
Gets or sets the data template for the cell in view mode.
Declaration
public DataTemplate CellTemplate { get; set; }
Property Value
DataTemplate
Remarks
Please refer to CellTemplate for more information on the property.
CellTemplateSelector
Gets or sets the data template selector for the cell in view mode.
Declaration
public DataTemplateSelector CellTemplateSelector { get; set; }
Property Value
DataTemplateSelector
ColumnFilterDescriptor
Gets the column filter descriptor.
Declaration
public IColumnFilterDescriptor ColumnFilterDescriptor { get; }
Property Value
The column filter descriptor.
ColumnGroupName
Gets or sets the name of the group this column belongs to.
DataControl
Gets the owning grid.
Declaration
public GridViewDataControl DataControl { get; }
Property Value
DisplayIndex
Gets or sets the display position of the column relative to the other columns in the RadGridView.
Declaration
public int DisplayIndex { get; set; }
Property Value
The zero-based position of the column as it is displayed in the associated RadGridView. The default is the index of the corresponding Item in the RadGridView.Columns collection.
DistinctValuesDisplayMode
Gets or sets the search mode for the distinct values. Setting this property is set to Tree makes the filtering deferred and disregards the value of the IsFilteringDeferred property.
Declaration
public DistinctValuesDisplayMode DistinctValuesDisplayMode { get; set; }
Property Value
DistinctValuesSearchMode
Gets or sets the search mode for the distinct values.
Declaration
public TextSearchMode DistinctValuesSearchMode { get; set; }
Property Value
EditTriggers
Gets or sets the edit triggers.
Declaration
public GridViewEditTriggers EditTriggers { get; set; }
Property Value
The edit triggers.
EnableDistinctValuesFiltering
Gets or sets a value indicating whether this column will show the distinct values search text box.
Declaration
public bool EnableDistinctValuesFiltering { get; set; }
Property Value
FilterMemberPath
Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to filter by.
FilterMemberType
Gets or sets the filter member type of the column. Set this property when the type cannot be automatically discovered from the FilterMemberPath.
Declaration
public Type FilterMemberType { get; set; }
Property Value
The filter member data type of the column.
FilteringControl
Gets or sets the control used for filtering.
Declaration
public IFilteringControl FilteringControl { get; set; }
Property Value
FilteringControlStyle
Gets or sets the style which will be applied on the filtering control.
Declaration
public Style FilteringControlStyle { get; set; }
Property Value
Style
The editor style.
FilteringDisplayFunc
Gets the filtering display function.
Declaration
protected virtual Func<object, object> FilteringDisplayFunc { get; }
Property Value
The filtering display function.
Remarks
This function is used by the filtering control distinct values list. It accepts a raw data value and returns what will become the content of the distinct value checkbox.
Footer
Gets or sets the object used for Column footer.
FooterCellStyle
Gets or sets the style to be applied for the footer cell in that column.
Declaration
public Style FooterCellStyle { get; set; }
Property Value
Style
The cell style.
FooterTextAlignment
Gets or sets the text alignment for GridViewColumn footer cell content.
Declaration
public TextAlignment FooterTextAlignment { get; set; }
Property Value
TextAlignment
The text alignment.
GroupFooterCellStyle
Gets or sets the style to be applied for the group footer cell in that column.
Declaration
public Style GroupFooterCellStyle { get; set; }
Property Value
Style
The cell style.
GroupFooterCellStyleSelector
Gets or sets the style selector for group footer cells.
Declaration
public StyleSelector GroupFooterCellStyleSelector { get; set; }
Property Value
StyleSelector
GroupFooterTemplate
Gets or sets the data template for the group footer cell.
Declaration
public DataTemplate GroupFooterTemplate { get; set; }
Property Value
DataTemplate
Remarks
Please refer to GroupFooterTemplate for more information on the property.
GroupFooterTemplateSelector
Gets or sets the data template selector for the group footer cell.
Declaration
public DataTemplateSelector GroupFooterTemplateSelector { get; set; }
Property Value
DataTemplateSelector
GroupHeaderFormatString
Gets or sets the header format string. Used with string.Format statement.
Declaration
public string GroupHeaderFormatString { get; set; }
Property Value
The header format string.
GroupHeaderTemplate
Gets or sets the template for the group header.
Declaration
public DataTemplate GroupHeaderTemplate { get; set; }
Property Value
DataTemplate
Remarks
Please refer to GroupHeaderTemplate for more information on the property.
GroupHeaderTemplateSelector
Gets or sets the data template selector for the group header cell.
Declaration
public DataTemplateSelector GroupHeaderTemplateSelector { get; set; }
Property Value
DataTemplateSelector
GroupMemberPath
Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to group by.
Declaration
public virtual string GroupMemberPath { get; set; }
Property Value
Header
Gets or sets the content of the column header.
Declaration
public virtual object Header { get; set; }
Property Value
Remarks
The ElementName binding does not work when used in column Header or CellTemplate. The problem comes from the fact that binding engine uses FindName method on FrameworkElement to find the target just once. So when element is loaded with LoadContent() – the element is not yet in the visual tree and FindName fails. As a solution, you can apply a Style to set the ContentTemplate.
HeaderCellStyle
Gets or sets the style to be applied for the header cell in that column.
Declaration
public Style HeaderCellStyle { get; set; }
Property Value
Style
The cell style.
HeaderTextAlignment
Gets or sets the text alignment for GridViewColumn header cell content.
Declaration
public TextAlignment HeaderTextAlignment { get; set; }
Property Value
TextAlignment
The text alignment.
HeaderTextDecorations
Gets or sets the text decoration. Affects the header cell of the column. This is a dependency property.
Declaration
public TextDecorationCollection HeaderTextDecorations { get; set; }
Property Value
TextDecorationCollection
HeaderTextTrimming
Gets or sets TextTrimming that will be used to trim the text in this column header cell. This is a dependency property.
Declaration
public TextTrimming HeaderTextTrimming { get; set; }
Property Value
TextTrimming
TextTrimming that will be used to trim the inner text in the header cell for this column. The default value is
HeaderTextWrapping
Gets or sets HeaderTextWrapping that will be used to wrap the text in this column header cell. This is a dependency property.
Declaration
public TextWrapping HeaderTextWrapping { get; set; }
Property Value
TextWrapping
HeaderTextWrapping that will be used to wrap the inner text in the header cell for this column. The default value is
IsAutoGenerated
Gets a value that indicates whether the column is auto-generated.
Declaration
public bool IsAutoGenerated { get; set; }
Property Value
true if this instance is auto generated; otherwise, false.
IsCustomSortingEnabled
Gets or sets a value indicating whether custom sorting is enabled for this instance.
Declaration
public bool IsCustomSortingEnabled { get; set; }
Property Value
true if custom sorting is enabled; otherwise, false.
IsFilterable
Gets or sets a value indicating whether this column can be filtered through the UI.
Declaration
public bool IsFilterable { get; set; }
Property Value
true if the column can be filtered through the UI; otherwise, false.
IsFilteringDeferred
Gets or sets a value indicating whether this column will have deferred filtering when FilteringMode is Popup.
Declaration
public bool IsFilteringDeferred { get; set; }
Property Value
Remarks
This property only makes sense and is used for the Popup FilteringMode of RadGridView.
IsFrozen
Gets a value that indicates whether the column is prevented from scrolling horizontally.
Declaration
public bool IsFrozen { get; }
Property Value
true if this column is frozen column; otherwise, false.
IsGroupable
Gets or sets a value indicating whether this instance can be grouped.
Declaration
public bool IsGroupable { get; set; }
Property Value
true if this instance can be grouped; otherwise, false.
IsLeftSideFrozen
Gets a value that indicates whether the column frozen to the left side.
IsReadOnly
Gets or sets a value indicating whether the cells in the column can be edited.
Declaration
public virtual bool IsReadOnly { get; set; }
Property Value
true if the cells in the column can be edited; otherwise, false.
this property overrides the value of the same RadGridView property.
Implements
IsReorderable
Gets or sets a value that indicates whether the user can change the column display position by dragging the column header.
Declaration
public bool IsReorderable { get; set; }
Property Value
true if this instance can be reordered; otherwise, false.
IsResizable
Gets or sets a value that indicates whether the user can adjust the column width using the mouse.
Declaration
public bool IsResizable { get; set; }
Property Value
true if this instance is resizable; otherwise, false.
IsRightSideFrozen
Gets a value that indicates whether the column frozen to the right side.
IsSelected
Gets or sets a value indicating whether this column is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
true if this column is selected; otherwise, false.
IsSortable
Gets or sets a value that indicates whether the user can sort the column by clicking the column header.
Declaration
public bool IsSortable { get; set; }
Property Value
true if this instance is sortable; otherwise, false.
IsVisible
Gets or sets a value indicating whether this instance is visible.
Declaration
public bool IsVisible { get; set; }
Property Value
true if this instance is visible; otherwise, false.
ItemType
Gets the type of the item that the field belongs to.
Declaration
public virtual Type ItemType { get; }
Property Value
The type of the item.
MaxWidth
Gets or sets the maximum column width in pixels.
Declaration
public double MaxWidth { get; set; }
Property Value
The maximum column width in pixels. The default is PositiveInfinity.
MinWidth
Gets or sets the minimum column width in pixels.
Declaration
public double MinWidth { get; set; }
Property Value
The minimum column width in pixels, or 20 if the value is not set. The default is 20.
OptimizeDistinctFilterQuery
Gets or sets a value indicating whether to optimize distinct filter query.
Declaration
public bool OptimizeDistinctFilterQuery { get; set; }
Property Value
A value indicating whether to optimize distinct filter query.
Remarks
By default, a condition of the form 'Member IsEqualTo Value' is generated for each distinct value selected and then all such conditions are combined with the OR operator. When the amount of distinct values checked grows, the query might become very slow. Setting OptimizeDistinctFilterQuery to true, will check the amount of distinct values checked. If this amount is less than or equal to half of all distinct values the original query will be generated. If, however, the amount of distinct values checked is more than half of all distinct values, an inverted statement like this be generated: (Member IsNotEqualTo uncheckedDistinctValue_0) ... AND ... (Member IsNotEqualTo uncheckedDistinctValue_N) If absolutely all distinct values are checked then no statement will be generated at all because this effectively means that there is no filter applied. Setting this property to true will try to generate the shortest possible LINQ Where clause.
ShouldGenerateFieldFilterEditors
Gets or sets a value indicating whether field filter editors should be generated.
Declaration
public bool? ShouldGenerateFieldFilterEditors { get; set; }
Property Value
bool?
ShowColumnWhenGrouped
Indicates whether the column should be visible when grid is grouped by this column.
ShowDistinctFilters
Gets or sets a value indicating whether this column will show distinct filters.
ShowFieldFilters
Gets or sets a value indicating whether this column will show field filters.
ShowFilterButton
Gets or sets a value indicating whether this column will show the filter button.
ShowToolTipOnTrimmedText
Gets or sets a value that indicates whether a ToolTip will be visualized if the text in the cells is trimmed.
Declaration
public bool? ShowToolTipOnTrimmedText { get; set; }
Property Value
bool?
true if a ToolTip will be visualized; otherwise, false. The registered default is false.
SortMemberPath
Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to sort by.
Declaration
public virtual string SortMemberPath { get; set; }
Property Value
SortingIndex
Gets the sorting index of the column when there is multiple column sorting.
Declaration
public int SortingIndex { get; }
Property Value
The sorting index of the column when there is multiple column sorting.
SortingState
Gets or sets a Column sorting state depending on executed sorted command, it can take 3 possible values: Ascending, Descending and None.
Declaration
public SortingState SortingState { get; set; }
Property Value
TabStopMode
Gets or sets the tab stop mode which denotes if cell could gain focus via TAB key.
Declaration
public GridViewTabStop TabStopMode { get; set; }
Property Value
The tab stop mode.
TargetFilters
Gets the FilterDescriptorCollection where this column will add its ColumnFilterDescriptor. By default these are the RadGridView.FilterDescriptors since the column is filtering RadGridView.
Declaration
protected virtual FilterDescriptorCollection TargetFilters { get; }
Property Value
The FilterDescriptorCollection where this column will add its ColumnFilterDescriptor.
TextAlignment
Gets or sets the text alignment for GridViewColumn cells content.
Declaration
public TextAlignment TextAlignment { get; set; }
Property Value
TextAlignment
The text alignment.
TextDecorations
Gets or sets the text decoration. Affects all the cells in the column. This is a dependency property.
Declaration
public TextDecorationCollection TextDecorations { get; set; }
Property Value
TextDecorationCollection
TextTrimming
Gets or sets TextTrimming that will be used to trim the text in this column cells. This is a dependency property.
Declaration
public TextTrimming TextTrimming { get; set; }
Property Value
TextTrimming
TextTrimming that will be used to trim the inner text in each cell for this column. The default value is
TextWrapping
Gets or sets TextWrapping that will be used to wrap the text in this column cells. This is a dependency property.
Declaration
public TextWrapping TextWrapping { get; set; }
Property Value
TextWrapping
TextWrapping that will be used to wrap the inner text in each cell for this column. The default value is
ToolTipShowDuration
Gets or sets the amount of time (in milliseconds) that a tooltip remains visible.
Declaration
public int ToolTipShowDuration { get; set; }
Property Value
Remarks
Please refer to ToolTipShowDuration for more information on the property.
ToolTipTemplate
Gets or sets the template for the cell tooltip.
Declaration
public DataTemplate ToolTipTemplate { get; set; }
Property Value
DataTemplate
Remarks
Please refer to ToolTipTemplate for more information on the property.
ToolTipTemplateSelector
Gets or sets the data template selector for the cell tooltip.
Declaration
public DataTemplateSelector ToolTipTemplateSelector { get; set; }
Property Value
DataTemplateSelector
UniqueName
Gets or sets the unique name of the Column used for identifier.
Declaration
public virtual string UniqueName { get; set; }
Property Value
The unique name.
Implements
Width
Gets or sets the column width or an automatic sizing mode.
Declaration
public GridViewLength Width { get; set; }
Property Value
A structure that represents the column width or an automatic sizing mode. The default is the RadGridView.ColumnWidth property value.
Remarks
This property overrides the RadGridView.ColumnWidth property.
Methods
CanEdit(object)
Determines whether the data represented by the column can be edited.
CanFilter()
Determines whether the data represented by the column can be filtered by the RadGridView control.
Declaration
public virtual bool CanFilter()
Returns
true if the data represented by the column can be filtered automatically; otherwise, false.
CanGroup()
Determines whether the data represented by the column can be grouped.
Declaration
public virtual bool CanGroup()
Returns
true if the data represented by the column can be grouped; otherwise, false.
CanSort()
Determines whether the data represented by the column can be sorted.
Declaration
public virtual bool CanSort()
Returns
true if the data represented by the column can be sorted; otherwise, false.
ClearFilters()
Clears all filtering associated with this column.
Declaration
public void ClearFilters()
CopyPropertiesFrom(GridViewColumn)
Copy properties from source column.
Declaration
public virtual void CopyPropertiesFrom(GridViewColumn source)
Parameters
source
CreateCellEditElement(GridViewCell, object)
Creates the element for the cell in edit mode.
Declaration
public virtual FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
Parameters
cell
dataItem
Returns
FrameworkElement
CreateCellElement(GridViewCell, object)
Creates the element for the cell in view mode.
Declaration
public virtual FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
Parameters
cell
dataItem
Returns
FrameworkElement
CreateColumnFilterDescriptor()
Creates the column filter descriptor.
Declaration
public virtual IColumnFilterDescriptor CreateColumnFilterDescriptor()
Returns
CreateField()
Creates a field described by the descriptor.
Declaration
public virtual ContentControl CreateField()
Returns
ContentControl
Implements
CreateFieldFilterEditor()
Creates the field filter editor.
Declaration
public virtual FrameworkElement CreateFieldFilterEditor()
Returns
FrameworkElement
GetAggregateResults(QueryableCollectionViewGroup)
Gets aggregates results for specified group.
Declaration
public IEnumerable<AggregateResult> GetAggregateResults(QueryableCollectionViewGroup group)
Parameters
group
Returns
GetFilteringDisplayString(object)
Gets the filtering display string for a distinct value.
GetGridViewColumn(IFieldDescriptor)
Gets the GridViewColumn object.
Declaration
public static GridViewColumn GetGridViewColumn(IFieldDescriptor fieldDescriptor)
Parameters
fieldDescriptor
The field descriptor.
Returns
OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs)
Called when the aggregate functions collection has changed.
Declaration
protected virtual void OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
e
NotifyCollectionChangedEventArgs
The NotifyCollectionChangedEventArgs instance containing the event data.
OnAggregateFunctionsItemChanged(ItemChangedEventArgs<AggregateFunction>)
Called when an item in the aggregate functions collection is changed.
Declaration
protected virtual void OnAggregateFunctionsItemChanged(ItemChangedEventArgs<AggregateFunction> e)
Parameters
e
ItemChangedEventArgs<AggregateFunction>
The event arguments containing the event data.
OnCopyingCellClipboardContent(object)
This method is called for each selected cell to retrieve the default cell content.
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
OnPastingCellClipboardContent(object, object)
This method is called for each selected cell to replace the cell content with data from the clipboard.
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event.
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)
Parameters
args
The PropertyChangedEventArgs instance containing the event data.
OnPropertyChanged(string)
Raises the PropertyChanged event.
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
propertyName
PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
Prepares GridViewCell for edit.
Declaration
protected virtual object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
Parameters
editingElement
FrameworkElement
The editing element.
editingEventArgs
RoutedEventArgs
The RoutedEventArgs instance containing the event data.
Returns
RefreshCellElement(FrameworkElement, DependencyProperty)
Called when cell element needs refresh.
Declaration
protected virtual void RefreshCellElement(FrameworkElement element, DependencyProperty dependencyProperty)
Parameters
element
FrameworkElement
dependencyProperty
DependencyProperty
SortDistinctValues(IQueryable)
Sorts the distinct values.
Declaration
protected virtual IQueryable SortDistinctValues(IQueryable source)
Parameters
source
The unsorted distinct values.
Returns
The sorted distinct values.
SortDistinctValuesByFilteringDisplay(IQueryable)
Sorts the distinct values according to their display value.
Declaration
protected virtual IQueryable SortDistinctValuesByFilteringDisplay(IQueryable source)
Parameters
source
The unsorted distinct values.
Returns
The distinct values sorted according to their display value.
Remarks
Use this method only if you have bound RadGridView to an in-memory collection, i.e. the source.Provider is EnumerableQuery. Other providers may not support this method and will throw an exception.
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements
SortingStateChanged
Occurs after when the sorting state of a column changes.
Declaration
public event EventHandler<RadRoutedPropertyChangedEventArgs<SortingState>> SortingStateChanged
Event Value
EventHandler<RadRoutedPropertyChangedEventArgs<SortingState>>