ClassRadDataGrid
Represents a custom Control implementation that may be used to visualize data in tabular format - that is by rows and columns.
Definition
Namespace:Telerik.UI.Xaml.Controls.Grid
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class RadDataGrid : RadControl, IView, IElementPresenter
Inheritance: objectRadControlRadDataGrid
Implements:
Inherited Members
Constructors
RadDataGrid()
Initializes a new instance of the RadDataGrid class.
Declaration
public RadDataGrid()
Fields
AggregateRowBackgroundProperty
Identifies the AggregateRowBackground dependency property.
Declaration
public static readonly DependencyProperty AggregateRowBackgroundProperty
Field Value
DependencyProperty
AlternateRowBackgroundProperty
Identifies the AlternateRowBackground dependency property.
Declaration
public static readonly DependencyProperty AlternateRowBackgroundProperty
Field Value
DependencyProperty
AlternationStartIndexProperty
Identifies the AlternationStartIndex dependency property.
Declaration
public static readonly DependencyProperty AlternationStartIndexProperty
Field Value
DependencyProperty
AlternationStepProperty
Identifies the AlternationStep dependency property.
Declaration
public static readonly DependencyProperty AlternationStepProperty
Field Value
DependencyProperty
AutoGenerateColumnsProperty
Identifies the AutoGenerateColumns dependency property.
Declaration
public static readonly DependencyProperty AutoGenerateColumnsProperty
Field Value
DependencyProperty
CanUserChooseColumnsProperty
Identifies the CanUserChooseColumns dependency property.
Declaration
public static readonly DependencyProperty CanUserChooseColumnsProperty
Field Value
DependencyProperty
ColumnDataOperationsModeProperty
Identifies the ColumnDataOperationsMode dependency property.
Declaration
public static readonly DependencyProperty ColumnDataOperationsModeProperty
Field Value
DependencyProperty
ColumnResizeHandleDisplayModeProperty
Identifies the ColumnResizeHandleDisplayMode dependency property.
Declaration
public static readonly DependencyProperty ColumnResizeHandleDisplayModeProperty
Field Value
DependencyProperty
CurrentItemProperty
Identifies the CurrentItem dependency property.
Declaration
public static readonly DependencyProperty CurrentItemProperty
Field Value
DependencyProperty
DragBehaviorProperty
Identifies the DragBehavior dependency property.
Declaration
public static readonly DependencyProperty DragBehaviorProperty
Field Value
DependencyProperty
EnsureCurrentItemIntoViewProperty
Identifies the EnsureCurrentItemIntoView dependency property.
Declaration
public static readonly DependencyProperty EnsureCurrentItemIntoViewProperty
Field Value
DependencyProperty
ExternalEditorProperty
Identifies the ExternalEditor dependency property.
Declaration
public static readonly DependencyProperty ExternalEditorProperty
Field Value
DependencyProperty
FrozenColumnCountProperty
Identifies the FrozenColumnCount dependency property.
Declaration
public static readonly DependencyProperty FrozenColumnCountProperty
Field Value
DependencyProperty
GridLinesBrushProperty
Identifies the GridLinesBrush dependency property.
Declaration
public static readonly DependencyProperty GridLinesBrushProperty
Field Value
DependencyProperty
GridLinesThicknessProperty
Identifies the GridLinesThickness dependency property.
Declaration
public static readonly DependencyProperty GridLinesThicknessProperty
Field Value
DependencyProperty
GridLinesVisibilityProperty
Identifies the GridLinesVisibility dependency property.
Declaration
public static readonly DependencyProperty GridLinesVisibilityProperty
Field Value
DependencyProperty
GroupHeaderDisplayModeProperty
Identifies the GroupHeaderDisplayMode dependency property.
Declaration
public static readonly DependencyProperty GroupHeaderDisplayModeProperty
Field Value
DependencyProperty
GroupHeaderStyleProperty
Identifies the GroupHeaderStyle dependency property.
Declaration
public static readonly DependencyProperty GroupHeaderStyleProperty
Field Value
DependencyProperty
GroupHeaderStyleSelectorProperty
Identifies the GroupHeaderStyleSelector dependency property.
Declaration
public static readonly DependencyProperty GroupHeaderStyleSelectorProperty
Field Value
DependencyProperty
GroupHeaderTemplateProperty
Identifies the GroupHeaderTemplate dependency 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
GroupPanelPositionProperty
Identifies the GroupPanelPosition dependency property.
Declaration
public static readonly DependencyProperty GroupPanelPositionProperty
Field Value
DependencyProperty
HideFlyoutOnBackButtonPressedProperty
Identifies the HideFlyoutOnBackButtonPressed dependency property.
Declaration
public static readonly DependencyProperty HideFlyoutOnBackButtonPressedProperty
Field Value
DependencyProperty
IncrementalLoadingModeProperty
Identifies the IncrementalLoadingMode dependency property.
Declaration
public static readonly DependencyProperty IncrementalLoadingModeProperty
Field Value
DependencyProperty
IndentWidthProperty
Identifies the IndentWidth dependency property.
Declaration
public static readonly DependencyProperty IndentWidthProperty
Field Value
DependencyProperty
IsBusyIndicatorEnabledProperty
Identifies the IsBusyIndicatorEnabled dependency property.
Declaration
public static readonly DependencyProperty IsBusyIndicatorEnabledProperty
Field Value
DependencyProperty
IsSynchronizedWithCurrentItemProperty
Identifies the IsSynchronizedWithCurrentItem dependency property.
Declaration
public static readonly DependencyProperty IsSynchronizedWithCurrentItemProperty
Field Value
DependencyProperty
ItemsSourceProperty
Identifies the ItemsSource dependency property.
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
DependencyProperty
ListenForNestedPropertyChangeProperty
Identifies the ListenForNestedPropertyChange dependency property.
Declaration
public static readonly DependencyProperty ListenForNestedPropertyChangeProperty
Field Value
DependencyProperty
RealizedItemsBufferScaleProperty
Identifies the RealizedItemsVerticalBufferScale dependency property.
Declaration
public static readonly DependencyProperty RealizedItemsBufferScaleProperty
Field Value
DependencyProperty
RowBackgroundProperty
Identifies the AlternateRowBackground dependency property.
Declaration
public static readonly DependencyProperty RowBackgroundProperty
Field Value
DependencyProperty
RowBackgroundSelectorProperty
Identifies the RowBackgroundSelector dependency property.
Declaration
public static readonly DependencyProperty RowBackgroundSelectorProperty
Field Value
DependencyProperty
RowDetailsDisplayModeProperty
Identifies the RowDetailsDisplayMode dependency property.
Declaration
public static readonly DependencyProperty RowDetailsDisplayModeProperty
Field Value
DependencyProperty
RowDetailsTemplateProperty
Identifies the RowDetailsTemplate dependency property.
Declaration
public static readonly DependencyProperty RowDetailsTemplateProperty
Field Value
DependencyProperty
RowHeightProperty
Identifies the RowHeight dependency property.
Declaration
public static readonly DependencyProperty RowHeightProperty
Field Value
DependencyProperty
SelectedItemProperty
Identifies the SelectedItem dependency property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
DependencyProperty
SelectionModeProperty
Identifies the SelectionMode dependency property.
Declaration
public static readonly DependencyProperty SelectionModeProperty
Field Value
DependencyProperty
SelectionUnitProperty
Identifies the SelectionUnit dependency property.
Declaration
public static readonly DependencyProperty SelectionUnitProperty
Field Value
DependencyProperty
UserColumnReorderModeProperty
Identifies the UserColumnReorderMode dependency property.
Declaration
public static readonly DependencyProperty UserColumnReorderModeProperty
Field Value
DependencyProperty
UserEditModeProperty
Identifies the UserEditMode dependency property.
Declaration
public static readonly DependencyProperty UserEditModeProperty
Field Value
DependencyProperty
UserFilterModeProperty
Identifies the UserGroupMode dependency property.
Declaration
public static readonly DependencyProperty UserFilterModeProperty
Field Value
DependencyProperty
UserGroupModeProperty
Identifies the UserGroupMode dependency property.
Declaration
public static readonly DependencyProperty UserGroupModeProperty
Field Value
DependencyProperty
UserSortModeProperty
Identifies the UserSortMode dependency property.
Declaration
public static readonly DependencyProperty UserSortModeProperty
Field Value
DependencyProperty
Properties
AggregateDescriptors
Gets the collection of AggregateDescriptorBase objects that defines the current aggregate functions to be applied when the data view is computed.
Declaration
public AggregateDescriptorCollection AggregateDescriptors { get; }
Property Value
AggregateRowBackground
Gets or sets the Brush that defines the fill of each aggregate row.
Declaration
public Brush AggregateRowBackground { get; set; }
Property Value
Brush
AlternateRowBackground
Gets or sets the Brush that defines the fill of the alternate rows, as defined by the AlternationStep property.
Declaration
public Brush AlternateRowBackground { get; set; }
Property Value
Brush
AlternationStartIndex
Gets or sets the zero-based index of the row which is considered as alternation start.
AlternationStep
Gets or sets the step between each two alternate rows. The Modulus (%) operand is applied over this value.
AutoGenerateColumns
Gets or sets a value indicating whether grid's columns will be auto-generated from the provided ViewModel's properties.
CanUserChooseColumns
Gets or sets a value indicating whether the user is allowed to choose which columns are visible.
ColumnDataOperationsMode
Gets or sets the Data Operations Mode of the ColumnHeader.
Declaration
public ColumnDataOperationsMode ColumnDataOperationsMode { get; set; }
Property Value
ColumnResizeHandleDisplayMode
Gets or sets the DataGridColumnResizeHandleDisplayMode value that defines how User Input
(dragging column resize thumb) affects the current column size in the grid.
The default value is DataGridColumnResizeHandleDisplayMode.OnHold
Declaration
public DataGridColumnResizeHandleDisplayMode ColumnResizeHandleDisplayMode { get; set; }
Property Value
Example
XAML
<telerikGrid:RadDataGrid x:Name="dataGrid" ColumnResizeHandleDisplayMode="None"/>
C#
this.dataGrid.ColumnResizeHandleDisplayMode = DataGridColumnResizeHandleDisplayMode.None;
Columns
Gets the collection of DataGridColumn objects currently displayed within the grid.
Declaration
public DataGridColumnCollection Columns { get; }
Property Value
CommandService
Gets the CommandService instance that manages the commanding behavior of this instance.
Declaration
public CommandService CommandService { get; }
Property Value
Commands
Gets the collection with all the custom commands registered with the CommandService. Custom commands have higher priority than the built-in (default) ones.
Declaration
public CommandCollection<RadDataGrid> Commands { get; }
Property Value
CurrentItem
Gets the object instance from the ItemsSource that is currently considered as Current.
DragBehavior
Gets or sets the behavior controlling drag operations inside the DataGrid.
Declaration
public DataGridDragBehavior DragBehavior { get; set; }
Property Value
EnsureCurrentItemIntoView
Gets or sets a value indicating whether the CurrentItem should always be automatically scrolled into view.
Declaration
public bool EnsureCurrentItemIntoView { get; set; }
Property Value
ExternalEditor
Gets or sets external editor of the DataGrid.
Declaration
public IGridExternalEditor ExternalEditor { get; set; }
Property Value
FilterDescriptors
Gets the collection of FilterDescriptorBase objects that defines the current filtering within this instance.
Declaration
public FilterDescriptorCollection FilterDescriptors { get; }
Property Value
FrozenColumnCount
Gets or sets the count of the frozen columns.
GridLinesBrush
Gets or sets the Brush value that defines the appearance of grid's horizontal lines.
Declaration
public Brush GridLinesBrush { get; set; }
Property Value
Brush
GridLinesThickness
Gets or sets the width of the vertical grid lines and the height of the horizontal grid lines.
GridLinesVisibility
Gets or sets the GridLinesVisibility value that defines which grid lines are currently visible (displayed).
Declaration
public GridLinesVisibility GridLinesVisibility { get; set; }
Property Value
GroupDescriptors
Gets the collection of GroupDescriptorBase objects that defines the current grouping within this instance. Multiple group descriptors define multiple group levels.
Declaration
public GroupDescriptorCollection GroupDescriptors { get; }
Property Value
GroupHeaderDisplayMode
Gets or sets the DataGridGroupHeaderDisplayMode value that determines how group headers are displayed.
The default value is DataGridGroupHeaderDisplayMode.Frozen
Declaration
public DataGridGroupHeaderDisplayMode GroupHeaderDisplayMode { get; set; }
Property Value
Example
XAML
<telerikGrid:RadDataGrid x:Name="dataGrid" GroupHeaderDisplayMode="Scrollable"/>
C#
this.dataGrid.GroupHeaderDisplayMode = DataGridGroupHeaderDisplayMode.Scrollable;
GroupHeaderStyle
Gets or sets the Style instance that defines the appearance of all the group headers within the grid. The style instance should target the DataGridGroupHeader type.
Declaration
public Style GroupHeaderStyle { get; set; }
Property Value
Style
Example
XAML
<Style TargetType="GridPrimitives:DataGridGroupHeader">
<Setter Property="Foreground" Value="Red"/>
</Style>
GroupHeaderStyleSelector
Gets or sets the StyleSelector instance that may be used to select different styles on a per group header basis. The style instance returned should target the DataGridGroupHeader type.
Declaration
public StyleSelector GroupHeaderStyleSelector { get; set; }
Property Value
StyleSelector
Example
C#
public class CustomStyleSelector : StyleSelector
{
public Style ExpandedStyle {get;set;}
public Style CollapsedStyle {get;set;}
protected override Style SelectStyleCore(object item, DependencyObject container)
{
if ((item as GroupHeaderContext).IsExpanded == true) { return this.ExpandedStyle;} else{ return this.CollapsedStyle;}
}
}
GroupHeaderTemplate
Gets or sets the DataTemplate instance that defines the appearance of each group header within the grid. The data context of each group header will be a GroupHeaderContext instance.
Declaration
public DataTemplate GroupHeaderTemplate { get; set; }
Property Value
DataTemplate
Example
XAML
<telerikGrid:RadDataGrid.GroupHeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding Level}" FontSize="26"/>
</DataTemplate>
</telerikGrid:RadDataGrid.GroupHeaderTemplate>
GroupHeaderTemplateSelector
Gets or sets the DataTemplateSelector instance that may be used to select group header template on a per header instance basis. The "Item" parameter of the method will be a GroupHeaderContext instance.
Declaration
public DataTemplateSelector GroupHeaderTemplateSelector { get; set; }
Property Value
DataTemplateSelector
Example
C#
public class CustomDataTemplateSelector : DataTemplateSelector
{
public DataTemplate ExpandedTemplate { get; set; }
public DataTemplate CollapsedTemplate { get; set; }
protected override DataTemplate SelectTemplateCore(object item, Microsoft.UI.Xaml.DependencyObject container)
{
if ((item as GroupHeaderContext).IsExpanded == true) { return this.ExpandedTemplate; } else { return this.CollapsedTemplate; }
}
}
GroupPanelPosition
Gets or sets the position of the Group Panel related to the DataGrid.
Declaration
public GroupPanelPosition GroupPanelPosition { get; set; }
Property Value
HideFlyoutOnBackButtonPressed
Gets or sets a value indicating whether information if the flyout should be hidden when the back Button gets pressed.
Declaration
public bool HideFlyoutOnBackButtonPressed { get; set; }
Property Value
HitTestService
Gets the HitTestService instance that provides methods for retrieving rows and cells from a given physical location.
Declaration
public HitTestService HitTestService { get; }
Property Value
IncrementalLoadingMode
Gets or sets the incremental loading mode.
Declaration
public BatchLoadingMode IncrementalLoadingMode { get; set; }
Property Value
The incremental loading mode.
IndentWidth
Gets or sets a value that is used to offset different levels of nested groups. The default value is 24.
IsBusyIndicatorEnabled
Gets or sets a value indicating whether the built-in BusyIndicator control is enabled. If true, the Grid will display an indeterminate progress indicator while it is processing some background requests like filtering, sorting or grouping.
IsSynchronizedWithCurrentItem
Gets or sets a value indicating whether the SelectedItem and CurrentItem are synchronized.
Declaration
public bool IsSynchronizedWithCurrentItem { get; set; }
Property Value
ItemsSource
Gets or sets the data provider.
ListenForNestedPropertyChange
Gets or sets a value indicating whether the DataGrid should be updated if INotifyPropertyChanged item from its source is changed.
Declaration
public bool ListenForNestedPropertyChange { get; set; }
Property Value
RealizedItemsVerticalBufferScale
Gets or sets the relative to viewport size buffer scale that will be used to realize items outside viewport. Default value is 1.
Declaration
public double RealizedItemsVerticalBufferScale { get; set; }
Property Value
RowBackground
Gets or sets the Brush that defines the fill of each row.
Declaration
public Brush RowBackground { get; set; }
Property Value
Brush
RowBackgroundSelector
Gets or sets the ObjectSelector<T> that may be used to provide conditional fill for grid rows.
Declaration
public ObjectSelector<Brush> RowBackgroundSelector { get; set; }
Property Value
ObjectSelector<Brush>
RowDetailsDisplayMode
Gets or sets the display mode for the row details - whether they should be visualized or not.
Declaration
public DataGridRowDetailsMode RowDetailsDisplayMode { get; set; }
Property Value
RowDetailsTemplate
Gets or sets the Template of the row details.
Declaration
public DataTemplate RowDetailsTemplate { get; set; }
Property Value
DataTemplate
SelectedItem
Gets or sets the selected item of the DataGrid.
Declaration
public object SelectedItem { get; set; }
Property Value
Remarks
When the value of the SelectionUnit is Cell, the selected item is of type DataGridCellInfo. When the value of the SelectionUnit is Row, the selected item is of the same type as the business object.
SelectedItems
Gets the currently selected items within this instance. The type of items within the collection depends on the current SelectionUnit value: - The data item (row) when the selection unit is Row. - A DataGridCellInfo object when the selection unit is Cell.
Declaration
public BindableCollection<object> SelectedItems { get; }
Property Value
SelectionMode
Gets or sets the selection mode of the DataGrid. The default value is DataGridSelectionMode.Single.
Declaration
public DataGridSelectionMode SelectionMode { get; set; }
Property Value
Example
XAML
<telerikGrid:RadDataGrid x:Name="dataGrid" SelectionMode="Multiple"/>
C#
this.dataGrid.SelectionMode = DataGridSelectionMode.Multiple;
SelectionUnit
Gets or sets the selection unit of the DataGrid. The default value is DataGridSelectionUnit.Row
Declaration
public DataGridSelectionUnit SelectionUnit { get; set; }
Property Value
Example
XAML
<telerikGrid:RadDataGrid x:Name="dataGrid" SelectionUnit="Cell"/>
C#
this.dataGrid.SelectionUnit = DataGridSelectionUnit.Cell;
SortDescriptors
Gets the collection of SortDescriptorBase objects that defines the current sorting within this instance. Multiple sort descriptors define a sorting operation by multiple keys.
Declaration
public SortDescriptorCollection SortDescriptors { get; }
Property Value
UserColumnReorderMode
Gets or sets the DataGridUserColumnReorderMode value that defines how User Input
(dragging column header over another headers) affects the current column position in the grid.
The default value is DataGridUserColumnReorderMode.Interactive
Declaration
public DataGridUserColumnReorderMode UserColumnReorderMode { get; set; }
Property Value
Example
XAML
<telerikGrid:RadDataGrid x:Name="dataGrid" UserColumnReorderMode="None"/>
C#
this.dataGrid.UserColumnReorderMode = DataGridUserColumnReorderMode.None;
UserEditMode
Gets or sets the user edit mode of the DataGrid.
Declaration
public DataGridUserEditMode UserEditMode { get; set; }
Property Value
The can user edit.
UserFilterMode
Gets or sets the DataGridUserFilterMode value that defines whether the Filter Glyph is present in the header of the currently available filterable columns.
The default value is DataGridUserFilterMode.Auto
Declaration
public DataGridUserFilterMode UserFilterMode { get; set; }
Property Value
Example
XAML
<telerikGrid:RadDataGrid x:Name="dataGrid" UserFilterMode="Disabled"/>
C#
this.dataGrid.UserFilterMode = DataGridUserFilterMode.Disabled;
UserGroupMode
Gets or sets the DataGridUserGroupMode value that determines whether the User is allowed to change the current Grouping state through the User Interface.
The default value is DataGridUserGroupMode.Auto
Declaration
public DataGridUserGroupMode UserGroupMode { get; set; }
Property Value
Example
XAML
<telerikGrid:RadDataGrid x:Name="dataGrid" UserGroupMode="Disabled"/>
C#
this.dataGrid.UserGroupMode = DataGridUserGroupMode.Disabled
UserSortMode
Gets or sets the DataGridUserSortMode value that defines how User Input (column header tap) affects the current Sort state of the grid.
The default value is DataGridUserSortMode.Auto
Declaration
public DataGridUserSortMode UserSortMode { get; set; }
Property Value
Example
XAML
<telerikGrid:RadDataGrid x:Name="dataGrid" UserSortMode="None"/>
C#
this.dataGrid.UserSortMode = DataGridUserSortMode.None;
Methods
ApplyTemplateCore()
Called when the Framework is called. Inheritors should override this method should they have some custom template-related logic. This is done to ensure that the property is properly initialized.
BeginEdit(object)
Begins the edit operation for the specified data item.
CancelEdit()
Cancels the current edit operation.
CommitEdit()
Commits the current edit operation.
DeselectAll()
Clears the current selection state.
Declaration
public void DeselectAll()
DeselectCell(DataGridCellInfo)
Removes the selection for the grid cell defined by the specified cell info.
Declaration
public void DeselectCell(DataGridCellInfo item)
Parameters
item
DeselectItem(object)
Removes the selection for the specified data item and removes it from the SelectedItems collection.
GetDataView()
Gets the IDataView instance that can be used to traverse and/or manipulate the data after all the Sort, Group and Filter operations are applied.
HideRowDetailsForItem(object)
Hide the row details.
Declaration
public void HideRowDetailsForItem(object item)
Parameters
item
The item for which the row details should be hide.
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
Overrides
OnKeyDown(KeyRoutedEventArgs)
Called before the KeyDown event occurs.
Declaration
protected override void OnKeyDown(KeyRoutedEventArgs e)
Parameters
e
KeyRoutedEventArgs
The data for the event.
OnTemplateApplied()
Occurs when the method has been called and the template is already successfully applied.
Declaration
protected override void OnTemplateApplied()
Overrides
ScrollColumnIntoView(DataGridColumn)
Attempts to bring the specified DataGridColumn into view asynchronously.
Declaration
public void ScrollColumnIntoView(DataGridColumn column)
Parameters
column
The column to attempt to scroll to.
ScrollColumnIntoView(DataGridColumn, Action)
Attempts to bring the specified DataGridColumn into view asynchronously.
Declaration
public void ScrollColumnIntoView(DataGridColumn column, Action scrollCompletedAction)
Parameters
column
The column.
scrollCompletedAction
Arbitrary action that may be executed after the asynchronous update is executed.
ScrollIndexIntoView(int)
Attempts to bring the data item at the specified zero-based index into view asynchronously.
Declaration
public void ScrollIndexIntoView(int index)
Parameters
index
The zero-based index of the item to scroll.
ScrollIndexIntoView(int, Action)
Attempts to bring the data item at the specified zero-based index into view asynchronously.
ScrollItemIntoView(object)
Attempts to bring the specified data item into view asynchronously.
Declaration
public void ScrollItemIntoView(object item)
Parameters
item
The data item to scroll to.
ScrollItemIntoView(object, Action)
Attempts to bring the specified data item into view asynchronously.
SelectAll()
Selects all the items as defined by the SelectionMode and SelectionUnit
Declaration
public void SelectAll()
SelectCell(DataGridCellInfo)
Selects the grid cell as defined by the specified cell info.
Declaration
public void SelectCell(DataGridCellInfo item)
Parameters
item
Remarks
In order to select a cell, the SelectionUnit value should be DataGridSelectionUnit.Cell.
SelectItem(object)
Selects the specified data item and adds it in the SelectedItems collection.
Declaration
public void SelectItem(object item)
Parameters
item
Remarks
In order to select a Row, the SelectionUnit value should be DataGridSelectionUnit.Row.
ShowRowDetailsForItem(object)
Show the row details.
Declaration
public void ShowRowDetailsForItem(object item)
Parameters
item
The item that should have its row details visualized.
UnapplyTemplateCore()
Removes the current control template. Occurs when a template has already been applied and a new one is applied.
Declaration
protected override void UnapplyTemplateCore()
Overrides
Events
AsyncExportCompleted
Occurs when an async export operation is completed.
Declaration
public event AsyncCompletedEventHandler AsyncExportCompleted
Event Value
AsyncExportProgressChanged
Occurs when the progress of an async export operation changes.
Declaration
public event ProgressChangedEventHandler AsyncExportProgressChanged
Event Value
CurrentItemChanged
Occurs when the CurrentItem property has changed.
CurrentItemChanging
Occurs when the CurrentItem property is about to change. The event may be canceled to prevent the actual change.
Declaration
public event CurrentChangingEventHandler CurrentItemChanging
Event Value
CurrentChangingEventHandler
DataBindingComplete
Occurs when the associated data (ItemsSource) has been successfully bound to the control or any data operation like Group, Sort or Filter is applied. This event is useful if an additional action is required once the data is ready to be visualized.
Declaration
public event EventHandler<DataBindingCompleteEventArgs> DataBindingComplete
Event Value
ElementExported
Occurs after an element is exported.
Declaration
public event EventHandler<DataGridElementExportedEventArgs> ElementExported
Event Value
ElementExporting
Occurs before an element is exported.
Declaration
public event EventHandler<DataGridElementExportingEventArgs> ElementExporting
Event Value
SelectionChanged
Occurs when the currently selected items change.
Declaration
public event EventHandler<DataGridSelectionChangedEventArgs> SelectionChanged
Event Value