Class GridViewColumn
This is a dependency object used to store column's specific data.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.GridView.dll
Syntax
public class GridViewColumn : FrameworkContentElement, IFilterableColumn, IFieldDescriptor, INotifyPropertyChanged, IColumnElement
Constructors
GridViewColumn()
Declaration
public GridViewColumn()
Fields
BackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly DependencyProperty BackgroundProperty
Field Value
System.
|
CellEditTemplateProperty
Identifies the CellEditTemplateProperty property.
Declaration
public static readonly DependencyProperty CellEditTemplateProperty
Field Value
System.
|
CellEditTemplateSelectorProperty
Identifies the Cell
Declaration
public static readonly DependencyProperty CellEditTemplateSelectorProperty
Field Value
System.
|
CellStyleProperty
Identifies the Cell
Declaration
public static readonly DependencyProperty CellStyleProperty
Field Value
System.
|
CellStyleSelectorProperty
Identifies the Cell
Declaration
public static readonly DependencyProperty CellStyleSelectorProperty
Field Value
System.
|
CellTemplateProperty
Identifies the CellTemplate property.
Declaration
public static readonly DependencyProperty CellTemplateProperty
Field Value
System.
|
CellTemplateSelectorProperty
Identifies the Cell
Declaration
public static readonly DependencyProperty CellTemplateSelectorProperty
Field Value
System.
|
DisplayIndexProperty
Identifies the Display
Declaration
public static readonly DependencyProperty DisplayIndexProperty
Field Value
System.
|
DistinctValuesDisplayModeProperty
Identifies the Distinct
Declaration
public static readonly DependencyProperty DistinctValuesDisplayModeProperty
Field Value
System.
|
DistinctValuesSearchModeProperty
Identifies the Distinct
Declaration
public static readonly DependencyProperty DistinctValuesSearchModeProperty
Field Value
System.
|
EditTriggersProperty
Identifies the Edit
Declaration
public static readonly DependencyProperty EditTriggersProperty
Field Value
System.
|
EnableDistinctValuesFilteringProperty
Identifies the Enable
Declaration
public static readonly DependencyProperty EnableDistinctValuesFilteringProperty
Field Value
System.
|
FilteringControlStyleProperty
Identifies the Filtering
Declaration
public static readonly DependencyProperty FilteringControlStyleProperty
Field Value
System.
|
FilterMemberTypeProperty
Identifies the FilterMemberType dependency property.
Declaration
public static readonly DependencyProperty FilterMemberTypeProperty
Field Value
System.
|
FooterCellStyleProperty
FooterProperty
FooterTextAlignmentProperty
GroupFooterCellStyleProperty
GroupFooterCellStyleSelectorProperty
GroupFooterTemplateProperty
GroupFooterTemplateSelectorProperty
GroupHeaderTemplateProperty
Identifies the GroupFooterTemplateProperty property.
Declaration
public static readonly DependencyProperty GroupHeaderTemplateProperty
Field Value
System.
|
GroupHeaderTemplateSelectorProperty
Identifies the Group
Declaration
public static readonly DependencyProperty GroupHeaderTemplateSelectorProperty
Field Value
System.
|
HeaderCellStyleProperty
Identifies the Header
Declaration
public static readonly DependencyProperty HeaderCellStyleProperty
Field Value
System.
|
HeaderProperty
Identifies the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
System.
|
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
System.
|
HeaderTextDecorationsProperty
Identifies the Header
Declaration
public static readonly DependencyProperty HeaderTextDecorationsProperty
Field Value
System.
|
HeaderTextTrimmingProperty
Identifies the Header
Declaration
public static readonly DependencyProperty HeaderTextTrimmingProperty
Field Value
System. The identifier for the Header |
HeaderTextWrappingProperty
Identifies the Header
Declaration
public static readonly DependencyProperty HeaderTextWrappingProperty
Field Value
System. The identifier for the Header |
IsCustomSortingEnabledProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsCustomSortingEnabledProperty
Field Value
System.
|
IsFilterableProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsFilterableProperty
Field Value
System.
|
IsFilteringDeferredProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsFilteringDeferredProperty
Field Value
System.
|
IsFrozenProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsFrozenProperty
Field Value
System.
|
IsGroupableProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsGroupableProperty
Field Value
System.
|
IsReadOnlyProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
System.
|
IsReorderableProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsReorderableProperty
Field Value
System.
|
IsResizableProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsResizableProperty
Field Value
System.
|
IsSelectedProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsSelectedProperty
Field Value
System.
|
IsSortableProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsSortableProperty
Field Value
System.
|
IsVisibleProperty
Identifies the Is
Declaration
public static readonly DependencyProperty IsVisibleProperty
Field Value
System.
|
MaxWidthProperty
The DependencyProperty that represents the MaxWidth property.
Declaration
public static readonly DependencyProperty MaxWidthProperty
Field Value
System.
|
MinWidthProperty
The DependencyProperty that represents the MinWidth property.
Declaration
public static readonly DependencyProperty MinWidthProperty
Field Value
System.
|
OptimizeDistinctFilterQueryProperty
Identifies the Optimize
Declaration
public static readonly DependencyProperty OptimizeDistinctFilterQueryProperty
Field Value
System.
|
ShouldGenerateFieldFilterEditorsProperty
Identifies the Should
Declaration
public static readonly DependencyProperty ShouldGenerateFieldFilterEditorsProperty
Field Value
System.
|
ShowColumnWhenGroupedProperty
Identifies the ShowColumnWhenGrouped dependency property.
Declaration
public static readonly DependencyProperty ShowColumnWhenGroupedProperty
Field Value
System.
|
ShowDistinctFiltersProperty
Identifies the Show
Declaration
public static readonly DependencyProperty ShowDistinctFiltersProperty
Field Value
System.
|
ShowFieldFiltersProperty
Identifies the Show
Declaration
public static readonly DependencyProperty ShowFieldFiltersProperty
Field Value
System.
|
ShowFilterButtonProperty
Identifies the Show
Declaration
public static readonly DependencyProperty ShowFilterButtonProperty
Field Value
System.
|
ShowToolTipOnTrimmedTextProperty
Identifies the Show
Declaration
public static readonly DependencyProperty ShowToolTipOnTrimmedTextProperty
Field Value
System.
|
SortingIndexProperty
Identifies the SortingIndex readonly dependency property.
Declaration
public static readonly DependencyProperty SortingIndexProperty
Field Value
System.
|
SortingStateChangedEvent
Identifies the Sorting
Declaration
public static readonly RoutedEvent SortingStateChangedEvent
Field Value
System.
|
SortingStateProperty
Identifies the Sorting
Declaration
public static readonly DependencyProperty SortingStateProperty
Field Value
System.
|
TabStopModeProperty
Identifies the Tab
Declaration
public static readonly DependencyProperty TabStopModeProperty
Field Value
System.
|
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
System.
|
TextDecorationsProperty
Identifies the Text
Declaration
public static readonly DependencyProperty TextDecorationsProperty
Field Value
System.
|
TextTrimmingProperty
Identifies the Text
Declaration
public static readonly DependencyProperty TextTrimmingProperty
Field Value
System. The identifier for the Text |
TextWrappingProperty
Identifies the Text
Declaration
public static readonly DependencyProperty TextWrappingProperty
Field Value
System. The identifier for the Text |
ToolTipShowDurationProperty
Identifies the ToolTipShowDurationProperty property.
Declaration
public static readonly DependencyProperty ToolTipShowDurationProperty
Field Value
System.
|
ToolTipTemplateProperty
Identifies the ToolTipTemplateProperty property.
Declaration
public static readonly DependencyProperty ToolTipTemplateProperty
Field Value
System.
|
ToolTipTemplateSelectorProperty
Identifies the Tool
Declaration
public static readonly DependencyProperty ToolTipTemplateSelectorProperty
Field Value
System.
|
WidthProperty
The DependencyProperty that represents the Width property.
Declaration
public static readonly DependencyProperty WidthProperty
Field Value
System.
|
Properties
ActualWidth
Gets the current width of the column in pixels.
Declaration
public double ActualWidth { get; }
Property Value
System. 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
Aggregate The aggregate functions. |
Background
Gets or sets the color behind the content of the column.
Declaration
public Brush Background { get; set; }
Property Value
System. The column background. |
CellEditTemplate
Gets or sets the data template for the cell in edit mode.
Declaration
public DataTemplate CellEditTemplate { get; set; }
Property Value
System.
|
Remarks
Please refer to Cell
CellEditTemplateSelector
Gets or sets the data template selector for the cell in edit mode.
Declaration
public DataTemplateSelector CellEditTemplateSelector { get; set; }
Property Value
System.
|
CellStyle
Gets or sets the style to be applied for the cells in that column.
Declaration
public Style CellStyle { get; set; }
Property Value
System. The cell style. |
CellStyleSelector
Gets or sets the style selector for the cell.
Declaration
public StyleSelector CellStyleSelector { get; set; }
Property Value
System.
|
CellTemplate
Gets or sets the data template for the cell in view mode.
Declaration
public DataTemplate CellTemplate { get; set; }
Property Value
System.
|
Remarks
Please refer to Cell
CellTemplateSelector
Gets or sets the data template selector for the cell in view mode.
Declaration
public DataTemplateSelector CellTemplateSelector { get; set; }
Property Value
System.
|
ColumnFilterDescriptor
Gets the column filter descriptor.
Declaration
public IColumnFilterDescriptor ColumnFilterDescriptor { get; }
Property Value
IColumn The column filter descriptor. |
ColumnGroupName
Gets or sets the name of the group this column belongs to.
Declaration
public string ColumnGroupName { get; set; }
Property Value
System.
|
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
System. 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 Is
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
Grid 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
System.
|
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
System. The editor style. |
FilteringDisplayFunc
Gets the filtering display function.
Declaration
protected virtual Func<object, object> FilteringDisplayFunc { get; }
Property Value
System. 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.
FilterMemberPath
Gets or sets a property name, or a period-delimited hierarchy of property names, that indicates the member to filter by.
Declaration
public string FilterMemberPath { get; set; }
Property Value
System.
|
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
System. The filter member data type of the column. |
Footer
FooterCellStyle
FooterTextAlignment
GroupFooterCellStyle
GroupFooterCellStyleSelector
GroupFooterTemplate
GroupFooterTemplateSelector
GroupHeaderFormatString
Gets or sets the header format string. Used with string.Format statement.
Declaration
public string GroupHeaderFormatString { get; set; }
Property Value
System. The header format string. |
GroupHeaderTemplate
Gets or sets the template for the group header.
Declaration
public DataTemplate GroupHeaderTemplate { get; set; }
Property Value
System.
|
Remarks
Please refer to Group
GroupHeaderTemplateSelector
Gets or sets the data template selector for the group header cell.
Declaration
public DataTemplateSelector GroupHeaderTemplateSelector { get; set; }
Property Value
System.
|
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
System.
|
Header
Gets or sets the content of the column header.
Declaration
public virtual object Header { get; set; }
Property Value
System.
|
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
System. The cell style. |
HeaderTextAlignment
Gets or sets the text alignment for GridViewColumn header cell content.
Declaration
public TextAlignment HeaderTextAlignment { get; set; }
Property Value
System. 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
System.
|
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
System. TextTrimming that will be used to trim the inner text in the header cell for
this column. The default value is System. |
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
System. HeaderTextWrapping that will be used to wrap the inner text in the header cell for
this column. The default value is System. |
IsAutoGenerated
Gets a value that indicates whether the column is auto-generated.
Declaration
public bool IsAutoGenerated { get; set; }
Property Value
System.
|
IsCustomSortingEnabled
Gets or sets a value indicating whether custom sorting is enabled for this instance.
Declaration
public bool IsCustomSortingEnabled { get; set; }
Property Value
System.
|
IsFilterable
Gets or sets a value indicating whether this column can be filtered through the UI.
Declaration
public bool IsFilterable { get; set; }
Property Value
System.
|
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
System.
|
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
System.
|
IsGroupable
Gets or sets a value indicating whether this instance can be grouped.
Declaration
public bool IsGroupable { get; set; }
Property Value
System.
|
IsLeftSideFrozen
Gets a value that indicates whether the column frozen to the left side.
Declaration
public bool IsLeftSideFrozen { get; }
Property Value
System.
|
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
System.
|
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
System.
|
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
System.
|
IsRightSideFrozen
Gets a value that indicates whether the column frozen to the right side.
Declaration
public bool IsRightSideFrozen { get; }
Property Value
System.
|
IsSelected
Gets or sets a value indicating whether this column is selected.
Declaration
public bool IsSelected { get; set; }
Property Value
System.
|
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
System.
|
IsVisible
Gets or sets a value indicating whether this instance is visible.
Declaration
public bool IsVisible { get; set; }
Property Value
System.
|
ItemType
Gets the type of the item that the field belongs to.
Declaration
public virtual Type ItemType { get; }
Property Value
System. The type of the item. |
MaxWidth
Gets or sets the maximum column width in pixels.
Declaration
public double MaxWidth { get; set; }
Property Value
System. 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
System. 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
System. 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 Nullable<bool> ShouldGenerateFieldFilterEditors { get; set; }
Property Value
System.
|
ShowColumnWhenGrouped
Indicates whether the column should be visible when grid is grouped by this column.
Declaration
public bool ShowColumnWhenGrouped { get; set; }
Property Value
System.
|
ShowDistinctFilters
Gets or sets a value indicating whether this column will show distinct filters.
Declaration
public bool ShowDistinctFilters { get; set; }
Property Value
System.
|
ShowFieldFilters
Gets or sets a value indicating whether this column will show field filters.
Declaration
public bool ShowFieldFilters { get; set; }
Property Value
System.
|
ShowFilterButton
Gets or sets a value indicating whether this column will show the filter button.
Declaration
public bool ShowFilterButton { get; set; }
Property Value
System.
|
ShowToolTipOnTrimmedText
Gets or sets a value that indicates whether a ToolTip will be visualized if the text in the cells is trimmed.
Declaration
public Nullable<bool> ShowToolTipOnTrimmedText { get; set; }
Property Value
System.
|
SortingIndex
Gets the sorting index of the column when there is multiple column sorting.
Declaration
public int SortingIndex { get; }
Property Value
System. 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
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
System.
|
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
Grid 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
Filter 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
System. 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
System.
|
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
System. TextTrimming that will be used to trim the inner text in each cell for
this column. The default value is System. |
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
System. TextWrapping that will be used to wrap the inner text in each cell for
this column. The default value is System. |
ToolTipShowDuration
Gets or sets the amount of time (in milliseconds) that a tooltip remains visible.
Declaration
public int ToolTipShowDuration { get; set; }
Property Value
System.
|
Remarks
Please refer to Tool
ToolTipTemplate
Gets or sets the template for the cell tooltip.
Declaration
public DataTemplate ToolTipTemplate { get; set; }
Property Value
System.
|
Remarks
Please refer to Tool
ToolTipTemplateSelector
Gets or sets the data template selector for the cell tooltip.
Declaration
public DataTemplateSelector ToolTipTemplateSelector { get; set; }
Property Value
System.
|
UniqueName
Gets or sets the unique name of the Column used for identifier.
Declaration
public virtual string UniqueName { get; set; }
Property Value
System. The unique name. |
Implements
Width
Gets or sets the column width or an automatic sizing mode.
Declaration
public GridViewLength Width { get; set; }
Property Value
Grid 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.
Declaration
public virtual bool CanEdit(object item)
Parameters
System.
|
Returns
System.
|
CanFilter()
Determines whether the data represented by the column can be filtered by the RadGridView control.
Declaration
public virtual bool CanFilter()
Returns
System.
|
CanGroup()
Determines whether the data represented by the column can be grouped.
Declaration
public virtual bool CanGroup()
Returns
System.
|
CanSort()
Determines whether the data represented by the column can be sorted.
Declaration
public virtual bool CanSort()
Returns
System.
|
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
Grid
|
CreateCellEditElement(GridViewCell, Object)
Creates the element for the cell in edit mode.
Declaration
public virtual FrameworkElement CreateCellEditElement(GridViewCell cell, object dataItem)
Parameters
Grid
|
System.
|
Returns
System.
|
CreateCellElement(GridViewCell, Object)
Creates the element for the cell in view mode.
Declaration
public virtual FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
Parameters
Grid
|
System.
|
Returns
System.
|
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
System.
|
Implements
CreateFieldFilterEditor()
Creates the field filter editor.
Declaration
public virtual FrameworkElement CreateFieldFilterEditor()
Returns
System.
|
GetAggregateResults(QueryableCollectionViewGroup)
Gets aggregates results for specified group.
Declaration
public IEnumerable<AggregateResult> GetAggregateResults(QueryableCollectionViewGroup group)
Parameters
Returns
System.
|
GetFilteringDisplayString(Object)
Gets the filtering display string for a distinct value.
Declaration
public string GetFilteringDisplayString(object distinctValue)
Parameters
System. The distinctValue. |
Returns
System.
|
GetGridViewColumn(IFieldDescriptor)
Gets the GridViewColumn object.
Declaration
public static GridViewColumn GetGridViewColumn(IFieldDescriptor fieldDescriptor)
Parameters
IField The field descriptor. |
Returns
OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs)
Called when the aggregate functions collection has changed.
Declaration
protected virtual void OnAggregateFunctionsCollectionChanged(NotifyCollectionChangedEventArgs e)
Parameters
System. The System. |
OnAggregateFunctionsItemChanged(ItemChangedEventArgs<AggregateFunction>)
Called when an item in the aggregate functions collection is changed.
Declaration
protected virtual void OnAggregateFunctionsItemChanged(ItemChangedEventArgs<AggregateFunction> e)
Parameters
Item The event arguments containing the event data. |
OnCopyingCellClipboardContent(Object)
This method is called for each selected cell to retrieve the default cell content.
Declaration
public virtual object OnCopyingCellClipboardContent(object item)
Parameters
System. The data context for the selected element. |
Returns
System. An object that represents the content of the cell. |
OnInitialized(EventArgs)
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.
|
OnPastingCellClipboardContent(Object, Object)
This method is called for each selected cell to replace the cell content with data from the clipboard.
Declaration
public virtual void OnPastingCellClipboardContent(object item, object value)
Parameters
System. The data context for the selected element. |
System. The clipboard data for the selected cell. |
OnPropertyChanged(PropertyChangedEventArgs)
Raises the Property
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs args)
Parameters
System. The System. |
OnPropertyChanged(String)
Raises the Property
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
System.
|
PrepareCellForEdit(FrameworkElement, RoutedEventArgs)
Prepares GridViewCell for edit.
Declaration
protected virtual object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
Parameters
System. The editing element. |
System. The System. |
Returns
System.
|
Refresh()
Refresh this column cells.
Declaration
protected virtual void Refresh()
RefreshCellElement(FrameworkElement, DependencyProperty)
Called when cell element needs refresh.
Declaration
protected virtual void RefreshCellElement(FrameworkElement element, DependencyProperty dependencyProperty)
Parameters
System.
|
System.
|
SortDistinctValues(IQueryable)
Sorts the distinct values.
Declaration
protected virtual IQueryable SortDistinctValues(IQueryable source)
Parameters
System. The unsorted distinct values. |
Returns
System. The sorted distinct values. |
SortDistinctValuesByFilteringDisplay(IQueryable)
Sorts the distinct values according to their display value.
Declaration
protected virtual IQueryable SortDistinctValuesByFilteringDisplay(IQueryable source)
Parameters
System. The unsorted distinct values. |
Returns
System. 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 Type
System.
|
SortingStateChanged
Occurs after when the sorting state of a column changes.
Declaration
public event EventHandler<RadRoutedPropertyChangedEventArgs<SortingState>> SortingStateChanged
Event Type
System.
|