GridViewColumn
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
public GridViewColumn()
Fields
BackgroundProperty
DependencyProperty
Identifies the Background dependency property.
public static readonly DependencyProperty BackgroundProperty
CellEditTemplateProperty
DependencyProperty
Identifies the CellEditTemplateProperty property.
public static readonly DependencyProperty CellEditTemplateProperty
CellEditTemplateSelectorProperty
DependencyProperty
Identifies the CellEditTemplateSelector dependency property.
public static readonly DependencyProperty CellEditTemplateSelectorProperty
CellStyleProperty
DependencyProperty
Identifies the CellStyle dependency property.
public static readonly DependencyProperty CellStyleProperty
CellStyleSelectorProperty
DependencyProperty
Identifies the CellStyleSelector dependency property.
public static readonly DependencyProperty CellStyleSelectorProperty
CellTemplateProperty
DependencyProperty
Identifies the CellTemplate property.
public static readonly DependencyProperty CellTemplateProperty
CellTemplateSelectorProperty
DependencyProperty
Identifies the CellTemplateSelector dependency property.
public static readonly DependencyProperty CellTemplateSelectorProperty
DisplayIndexProperty
DependencyProperty
Identifies the DisplayIndex dependency property.
public static readonly DependencyProperty DisplayIndexProperty
DistinctValuesDisplayModeProperty
DependencyProperty
Identifies the DistinctValuesDisplayMode dependency property.
public static readonly DependencyProperty DistinctValuesDisplayModeProperty
DistinctValuesSearchModeProperty
DependencyProperty
Identifies the DistinctValuesSearchMode dependency property.
public static readonly DependencyProperty DistinctValuesSearchModeProperty
EditTriggersProperty
DependencyProperty
Identifies the EditTriggers dependency property.
public static readonly DependencyProperty EditTriggersProperty
EnableDistinctValuesFilteringProperty
DependencyProperty
Identifies the EnableDistinctValuesFiltering dependency property.
public static readonly DependencyProperty EnableDistinctValuesFilteringProperty
FilteringControlStyleProperty
DependencyProperty
Identifies the FilteringControlStyle dependency property.
public static readonly DependencyProperty FilteringControlStyleProperty
FilterMemberTypeProperty
DependencyProperty
Identifies the FilterMemberType dependency property.
public static readonly DependencyProperty FilterMemberTypeProperty
FooterCellStyleProperty
DependencyProperty
Identifies the FooterCellStyle dependency property.
public static readonly DependencyProperty FooterCellStyleProperty
FooterProperty
DependencyProperty
Identifies the Footer dependency property.
public static readonly DependencyProperty FooterProperty
FooterTextAlignmentProperty
DependencyProperty
Gets or sets a value that indicates the horizontal alignment of header text content Affects all the header cell in the column.
public static readonly DependencyProperty FooterTextAlignmentProperty
GroupFooterCellStyleProperty
DependencyProperty
Identifies the GroupFooterCellStyle dependency property.
public static readonly DependencyProperty GroupFooterCellStyleProperty
GroupFooterCellStyleSelectorProperty
DependencyProperty
Identifies the GroupFooterCellStyleSelector dependency property.
public static readonly DependencyProperty GroupFooterCellStyleSelectorProperty
GroupFooterTemplateProperty
DependencyProperty
Identifies the GroupFooterTemplate property.
public static readonly DependencyProperty GroupFooterTemplateProperty
GroupFooterTemplateSelectorProperty
DependencyProperty
Identifies the GroupFooterTemplateSelector dependency property.
public static readonly DependencyProperty GroupFooterTemplateSelectorProperty
GroupHeaderTemplateProperty
DependencyProperty
Identifies the GroupFooterTemplateProperty property.
public static readonly DependencyProperty GroupHeaderTemplateProperty
GroupHeaderTemplateSelectorProperty
DependencyProperty
Identifies the GroupHeaderTemplateSelector dependency property.
public static readonly DependencyProperty GroupHeaderTemplateSelectorProperty
HeaderCellStyleProperty
DependencyProperty
Identifies the HeaderCellStyle dependency property.
public static readonly DependencyProperty HeaderCellStyleProperty
HeaderProperty
DependencyProperty
Identifies the Header dependency property.
public static readonly DependencyProperty HeaderProperty
HeaderTextAlignmentProperty
DependencyProperty
Gets or sets a value that indicates the horizontal alignment of header text content Affects all the header cell in the column.
public static readonly DependencyProperty HeaderTextAlignmentProperty
HeaderTextDecorationsProperty
DependencyProperty
Identifies the HeaderTextDecorations dependency property.
public static readonly DependencyProperty HeaderTextDecorationsProperty
HeaderTextTrimmingProperty
DependencyProperty
Identifies the HeaderTextTrimming property.
public static readonly DependencyProperty HeaderTextTrimmingProperty
The identifier for the HeaderTextTrimming property.
HeaderTextWrappingProperty
DependencyProperty
Identifies the HeaderTextWrapping property.
public static readonly DependencyProperty HeaderTextWrappingProperty
The identifier for the HeaderTextWrapping property.
IsCustomSortingEnabledProperty
DependencyProperty
Identifies the IsCustomSortingEnabled dependency property.
public static readonly DependencyProperty IsCustomSortingEnabledProperty
IsFilterableProperty
DependencyProperty
Identifies the IsFilterable dependency property.
public static readonly DependencyProperty IsFilterableProperty
IsFilteringDeferredProperty
DependencyProperty
Identifies the IsFilteringDeferred dependency property.
public static readonly DependencyProperty IsFilteringDeferredProperty
IsFrozenProperty
DependencyProperty
Identifies the IsFrozen readonly dependency property.
public static readonly DependencyProperty IsFrozenProperty
IsGroupableProperty
DependencyProperty
Identifies the IsGroupable dependency property.
public static readonly DependencyProperty IsGroupableProperty
IsReadOnlyProperty
DependencyProperty
Identifies the IsReadOnly dependency property.
public static readonly DependencyProperty IsReadOnlyProperty
IsReorderableProperty
DependencyProperty
Identifies the IsReorderable dependency property.
public static readonly DependencyProperty IsReorderableProperty
IsResizableProperty
DependencyProperty
Identifies the IsResizable dependency property.
public static readonly DependencyProperty IsResizableProperty
IsSelectedProperty
DependencyProperty
Identifies the IsSelected dependency property.
public static readonly DependencyProperty IsSelectedProperty
IsSortableProperty
DependencyProperty
Identifies the IsSortable dependency property.
public static readonly DependencyProperty IsSortableProperty
IsVisibleProperty
DependencyProperty
Identifies the IsVisible dependency property.
public static readonly DependencyProperty IsVisibleProperty
MaxWidthProperty
DependencyProperty
The DependencyProperty that represents the MaxWidth property.
public static readonly DependencyProperty MaxWidthProperty
MinWidthProperty
DependencyProperty
The DependencyProperty that represents the MinWidth property.
public static readonly DependencyProperty MinWidthProperty
OptimizeDistinctFilterQueryProperty
DependencyProperty
Identifies the OptimizeDistinctFilterQuery dependency property.
public static readonly DependencyProperty OptimizeDistinctFilterQueryProperty
ShouldGenerateFieldFilterEditorsProperty
DependencyProperty
Identifies the ShouldGenerateFieldFilterEditors dependency property.
public static readonly DependencyProperty ShouldGenerateFieldFilterEditorsProperty
ShowColumnWhenGroupedProperty
DependencyProperty
Identifies the ShowColumnWhenGrouped dependency property.
public static readonly DependencyProperty ShowColumnWhenGroupedProperty
ShowDistinctFiltersProperty
DependencyProperty
Identifies the ShowDistinctFilters dependency property.
public static readonly DependencyProperty ShowDistinctFiltersProperty
ShowFieldFiltersProperty
DependencyProperty
Identifies the ShowFieldFilters dependency property.
public static readonly DependencyProperty ShowFieldFiltersProperty
ShowFilterButtonProperty
DependencyProperty
Identifies the ShowFilterButton dependency property.
public static readonly DependencyProperty ShowFilterButtonProperty
ShowToolTipOnTrimmedTextProperty
DependencyProperty
Identifies the ShowToolTipOnTrimmedText dependency property.
public static readonly DependencyProperty ShowToolTipOnTrimmedTextProperty
SortingIndexProperty
DependencyProperty
Identifies the SortingIndex readonly dependency property.
public static readonly DependencyProperty SortingIndexProperty
SortingStateChangedEvent
RoutedEvent
Identifies the SortingStateChanged routed event.
public static readonly RoutedEvent SortingStateChangedEvent
SortingStateProperty
DependencyProperty
Identifies the SortingState dependency property.
public static readonly DependencyProperty SortingStateProperty
TabStopModeProperty
DependencyProperty
Identifies the TabStopMode dependency property.
public static readonly DependencyProperty TabStopModeProperty
TextAlignmentProperty
DependencyProperty
Gets or sets a value that indicates the horizontal alignment of text content Affects all the cells in the column.
public static readonly DependencyProperty TextAlignmentProperty
TextDecorationsProperty
DependencyProperty
Identifies the TextDecorations dependency property.
public static readonly DependencyProperty TextDecorationsProperty
TextTrimmingProperty
DependencyProperty
Identifies the TextTrimming property.
public static readonly DependencyProperty TextTrimmingProperty
The identifier for the TextTrimming property.
TextWrappingProperty
DependencyProperty
Identifies the TextWrapping property.
public static readonly DependencyProperty TextWrappingProperty
The identifier for the TextWrapping property.
ToolTipShowDurationProperty
DependencyProperty
Identifies the ToolTipShowDurationProperty property.
public static readonly DependencyProperty ToolTipShowDurationProperty
ToolTipTemplateProperty
DependencyProperty
Identifies the ToolTipTemplateProperty property.
public static readonly DependencyProperty ToolTipTemplateProperty
ToolTipTemplateSelectorProperty
DependencyProperty
Identifies the ToolTipTemplateSelector dependency property.
public static readonly DependencyProperty ToolTipTemplateSelectorProperty
WidthProperty
DependencyProperty
The DependencyProperty that represents the Width property.
public static readonly DependencyProperty WidthProperty
Properties
Gets the current width of the column in pixels.
public double ActualWidth { get; }
The width of the column in pixels. Returns 0 if the column has not been added to a RadGridView.
Gets an observable collection of the aggregate functions defined for the column.
public AggregateFunctionCollection AggregateFunctions { get; }
The aggregate functions.
Background
Brush
Gets or sets the color behind the content of the column.
public Brush Background { get; set; }
The column background.
CellEditTemplate
DataTemplate
Gets or sets the data template for the cell in edit mode.
public DataTemplate CellEditTemplate { get; set; }
Please refer to CellEditTemplate for more information on the property.
CellEditTemplateSelector
DataTemplateSelector
Gets or sets the data template selector for the cell in edit mode.
public DataTemplateSelector CellEditTemplateSelector { get; set; }
CellStyle
Style
Gets or sets the style to be applied for the cells in that column.
public Style CellStyle { get; set; }
The cell style.
CellStyleSelector
StyleSelector
Gets or sets the style selector for the cell.
public StyleSelector CellStyleSelector { get; set; }
CellTemplate
DataTemplate
Gets or sets the data template for the cell in view mode.
public DataTemplate CellTemplate { get; set; }
Please refer to CellTemplate for more information on the property.
CellTemplateSelector
DataTemplateSelector
Gets or sets the data template selector for the cell in view mode.
public DataTemplateSelector CellTemplateSelector { get; set; }
Gets the column filter descriptor.
public IColumnFilterDescriptor ColumnFilterDescriptor { get; }
The column filter descriptor.
Gets or sets the name of the group this column belongs to.
public string ColumnGroupName { get; set; }
Gets the owning grid.
public GridViewDataControl DataControl { get; }
Gets or sets the display position of the column relative to the other columns in the RadGridView.
public int DisplayIndex { get; set; }
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.
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.
public DistinctValuesDisplayMode DistinctValuesDisplayMode { get; set; }
Gets or sets the search mode for the distinct values.
public TextSearchMode DistinctValuesSearchMode { get; set; }
Gets or sets the edit triggers.
public GridViewEditTriggers EditTriggers { get; set; }
The edit triggers.
Gets or sets a value indicating whether this column will show the distinct values search text box.
public bool EnableDistinctValuesFiltering { get; set; }
Gets or sets the control used for filtering.
public IFilteringControl FilteringControl { get; set; }
Gets or sets the style which will be applied on the filtering control.
public Style FilteringControlStyle { get; set; }
The editor style.
Gets the filtering display function.
protected virtual Func<object, object> FilteringDisplayFunc { get; }
The filtering display function.
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.
Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to filter by.
public string FilterMemberPath { get; set; }
Gets or sets the filter member type of the column. Set this property when the type cannot be automatically discovered from the FilterMemberPath.
public Type FilterMemberType { get; set; }
The filter member data type of the column.
FooterCellStyle
Style
Gets or sets the style to be applied for the footer cell in that column.
public Style FooterCellStyle { get; set; }
The cell style.
FooterTextAlignment
TextAlignment
Gets or sets the text alignment for GridViewColumn footer cell content.
public TextAlignment FooterTextAlignment { get; set; }
The text alignment.
GroupFooterCellStyle
Style
Gets or sets the style to be applied for the group footer cell in that column.
public Style GroupFooterCellStyle { get; set; }
The cell style.
GroupFooterCellStyleSelector
StyleSelector
Gets or sets the style selector for group footer cells.
public StyleSelector GroupFooterCellStyleSelector { get; set; }
GroupFooterTemplate
DataTemplate
Gets or sets the data template for the group footer cell.
public DataTemplate GroupFooterTemplate { get; set; }
Please refer to GroupFooterTemplate for more information on the property.
GroupFooterTemplateSelector
DataTemplateSelector
Gets or sets the data template selector for the group footer cell.
public DataTemplateSelector GroupFooterTemplateSelector { get; set; }
Gets or sets the header format string. Used with string.Format statement.
public string GroupHeaderFormatString { get; set; }
The header format string.
GroupHeaderTemplate
DataTemplate
Gets or sets the template for the group header.
public DataTemplate GroupHeaderTemplate { get; set; }
Please refer to GroupHeaderTemplate for more information on the property.
GroupHeaderTemplateSelector
DataTemplateSelector
Gets or sets the data template selector for the group header cell.
public DataTemplateSelector GroupHeaderTemplateSelector { get; set; }
Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to group by.
public virtual string GroupMemberPath { get; set; }
Gets or sets the content of the column header.
public virtual object Header { get; set; }
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
Style
Gets or sets the style to be applied for the header cell in that column.
public Style HeaderCellStyle { get; set; }
The cell style.
HeaderTextAlignment
TextAlignment
Gets or sets the text alignment for GridViewColumn header cell content.
public TextAlignment HeaderTextAlignment { get; set; }
The text alignment.
HeaderTextDecorations
TextDecorationCollection
Gets or sets the text decoration. Affects the header cell of the column. This is a dependency property.
public TextDecorationCollection HeaderTextDecorations { get; set; }
HeaderTextTrimming
TextTrimming
Gets or sets TextTrimming that will be used to trim the text in this column header cell. This is a dependency property.
public TextTrimming HeaderTextTrimming { get; set; }
TextTrimming that will be used to trim the inner text in the header cell for this column. The default value is
HeaderTextWrapping
TextWrapping
Gets or sets HeaderTextWrapping that will be used to wrap the text in this column header cell. This is a dependency property.
public TextWrapping HeaderTextWrapping { get; set; }
HeaderTextWrapping that will be used to wrap the inner text in the header cell for this column. The default value is
Gets a value that indicates whether the column is auto-generated.
public bool IsAutoGenerated { get; set; }
true if this instance is auto generated; otherwise, false.
Gets or sets a value indicating whether custom sorting is enabled for this instance.
public bool IsCustomSortingEnabled { get; set; }
true if custom sorting is enabled; otherwise, false.
Gets or sets a value indicating whether this column can be filtered through the UI.
public bool IsFilterable { get; set; }
true if the column can be filtered through the UI; otherwise, false.
Gets or sets a value indicating whether this column will have deferred filtering when FilteringMode is Popup.
public bool IsFilteringDeferred { get; set; }
This property only makes sense and is used for the Popup FilteringMode of RadGridView.
Gets a value that indicates whether the column is prevented from scrolling horizontally.
public bool IsFrozen { get; }
true if this column is frozen column; otherwise, false.
Gets or sets a value indicating whether this instance can be grouped.
public bool IsGroupable { get; set; }
true if this instance can be grouped; otherwise, false.
Gets a value that indicates whether the column frozen to the left side.
public bool IsLeftSideFrozen { get; }
Gets or sets a value indicating whether the cells in the column can be edited.
public virtual bool IsReadOnly { get; set; }
true if the cells in the column can be edited; otherwise, false.
this property overrides the value of the same RadGridView property.
Implements:
Gets or sets a value that indicates whether the user can change the column display position by dragging the column header.
public bool IsReorderable { get; set; }
true if this instance can be reordered; otherwise, false.
Gets or sets a value that indicates whether the user can adjust the column width using the mouse.
public bool IsResizable { get; set; }
true if this instance is resizable; otherwise, false.
Gets a value that indicates whether the column frozen to the right side.
public bool IsRightSideFrozen { get; }
Gets or sets a value indicating whether this column is selected.
public bool IsSelected { get; set; }
true if this column is selected; otherwise, false.
Gets or sets a value that indicates whether the user can sort the column by clicking the column header.
public bool IsSortable { get; set; }
true if this instance is sortable; otherwise, false.
Gets or sets a value indicating whether this instance is visible.
public bool IsVisible { get; set; }
true if this instance is visible; otherwise, false.
Gets the type of the item that the field belongs to.
public virtual Type ItemType { get; }
The type of the item.
Gets or sets the maximum column width in pixels.
public double MaxWidth { get; set; }
The maximum column width in pixels. The default is PositiveInfinity.
Gets or sets the minimum column width in pixels.
public double MinWidth { get; set; }
The minimum column width in pixels, or 20 if the value is not set. The default is 20.
Gets or sets a value indicating whether to optimize distinct filter query.
public bool OptimizeDistinctFilterQuery { get; set; }
A value indicating whether to optimize distinct filter query.
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.
Gets or sets a value indicating whether field filter editors should be generated.
public bool? ShouldGenerateFieldFilterEditors { get; set; }
Indicates whether the column should be visible when grid is grouped by this column.
public bool ShowColumnWhenGrouped { get; set; }
Gets or sets a value indicating whether this column will show distinct filters.
public bool ShowDistinctFilters { get; set; }
Gets or sets a value indicating whether this column will show field filters.
public bool ShowFieldFilters { get; set; }
Gets or sets a value indicating whether this column will show the filter button.
public bool ShowFilterButton { get; set; }
Gets or sets a value that indicates whether a ToolTip will be visualized if the text in the cells is trimmed.
public bool? ShowToolTipOnTrimmedText { get; set; }
true if a ToolTip will be visualized; otherwise, false. The registered default is false.
Gets the sorting index of the column when there is multiple column sorting.
public int SortingIndex { get; }
The sorting index of the column when there is multiple column sorting.
Gets or sets a Column sorting state depending on executed sorted command, it can take 3 possible values: Ascending, Descending and None.
public SortingState SortingState { get; set; }
Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to sort by.
public virtual string SortMemberPath { get; set; }
Gets or sets the tab stop mode which denotes if cell could gain focus via TAB key.
public GridViewTabStop TabStopMode { get; set; }
The tab stop mode.
Gets the FilterDescriptorCollection where this column will add its ColumnFilterDescriptor. By default these are the RadGridView.FilterDescriptors since the column is filtering RadGridView.
protected virtual FilterDescriptorCollection TargetFilters { get; }
The FilterDescriptorCollection where this column will add its ColumnFilterDescriptor.
TextAlignment
TextAlignment
Gets or sets the text alignment for GridViewColumn cells content.
public TextAlignment TextAlignment { get; set; }
The text alignment.
TextDecorations
TextDecorationCollection
Gets or sets the text decoration. Affects all the cells in the column. This is a dependency property.
public TextDecorationCollection TextDecorations { get; set; }
TextTrimming
TextTrimming
Gets or sets TextTrimming that will be used to trim the text in this column cells. This is a dependency property.
public TextTrimming TextTrimming { get; set; }
TextTrimming that will be used to trim the inner text in each cell for this column. The default value is
TextWrapping
TextWrapping
Gets or sets TextWrapping that will be used to wrap the text in this column cells. This is a dependency property.
public TextWrapping TextWrapping { get; set; }
TextWrapping that will be used to wrap the inner text in each cell for this column. The default value is
Gets or sets the amount of time (in milliseconds) that a tooltip remains visible.
public int ToolTipShowDuration { get; set; }
Please refer to ToolTipShowDuration for more information on the property.
ToolTipTemplate
DataTemplate
Gets or sets the template for the cell tooltip.
public DataTemplate ToolTipTemplate { get; set; }
Please refer to ToolTipTemplate for more information on the property.
ToolTipTemplateSelector
DataTemplateSelector
Gets or sets the data template selector for the cell tooltip.
public DataTemplateSelector ToolTipTemplateSelector { get; set; }
Gets or sets the unique name of the Column used for identifier.
public virtual string UniqueName { get; set; }
The unique name.
Implements:
Gets or sets the column width or an automatic sizing mode.
public GridViewLength Width { get; set; }
A structure that represents the column width or an automatic sizing mode. The default is the RadGridView.ColumnWidth property value.
This property overrides the RadGridView.ColumnWidth property.
Methods
Determines whether the data represented by the column can be filtered by the RadGridView control.
public virtual bool CanFilter()
true if the data represented by the column can be filtered automatically; otherwise, false.
Determines whether the data represented by the column can be grouped.
public virtual bool CanGroup()
true if the data represented by the column can be grouped; otherwise, false.
Determines whether the data represented by the column can be sorted.
public virtual bool CanSort()
true if the data represented by the column can be sorted; otherwise, false.
Clears all filtering associated with this column.
public void ClearFilters()
Copy properties from source column.
CreateCellEditElement(GridViewCell, object)
FrameworkElement
Creates the element for the cell in edit mode.
public virtual FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
FrameworkElement
CreateCellElement(GridViewCell, object)
FrameworkElement
Creates the element for the cell in view mode.
public virtual FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
FrameworkElement
Creates the column filter descriptor.
public virtual IColumnFilterDescriptor CreateColumnFilterDescriptor()
CreateField()
ContentControl
Creates a field described by the descriptor.
public virtual ContentControl CreateField()
ContentControl
Implements:
CreateFieldFilterEditor()
FrameworkElement
Creates the field filter editor.
public virtual FrameworkElement CreateFieldFilterEditor()
FrameworkElement
Gets aggregates results for specified group.
public IEnumerable<AggregateResult> GetAggregateResults(QueryableCollectionViewGroup group)
Gets the GridViewColumn object.
public static GridViewColumn GetGridViewColumn(IFieldDescriptor fieldDescriptor)
The field descriptor.
Returns:Called when the aggregate functions collection has changed.
protected virtual void OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs e)
The NotifyCollectionChangedEventArgs instance containing the event data.
Called when an item in the aggregate functions collection is changed.
protected virtual void OnAggregateFunctionsItemChanged(ItemChangedEventArgs<AggregateFunction> e)
The event arguments containing the event data.
Raises the PropertyChanged event.
protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)
The PropertyChangedEventArgs instance containing the event data.
Raises the PropertyChanged event.
Prepares GridViewCell for edit.
protected virtual object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
The editing element.
editingEventArgsRoutedEventArgsThe RoutedEventArgs instance containing the event data.
Returns:Refresh this column cells.
protected virtual void Refresh()
Called when cell element needs refresh.
protected virtual void RefreshCellElement(FrameworkElement element, DependencyProperty dependencyProperty)
Sorts the distinct values.
protected virtual IQueryable SortDistinctValues(IQueryable source)
The unsorted distinct values.
Returns:The sorted distinct values.
Sorts the distinct values according to their display value.
protected virtual IQueryable SortDistinctValuesByFilteringDisplay(IQueryable source)
The unsorted distinct values.
Returns:The distinct values sorted according to their display value.
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
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements:
SortingStateChanged
EventHandler<RadRoutedPropertyChangedEventArgs<SortingState>>
Occurs after when the sorting state of a column changes.
public event EventHandler<RadRoutedPropertyChangedEventArgs<SortingState>> SortingStateChanged