Class DataGridRowControl
Represents the class that provides the common functionalities of datagrid rows.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.DataGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class DataGridRowControl : ContentControl, IDisposableConstructors
DataGridRowControl()
Initialize a new instance of the DataGridRowControl class.
Declaration
public DataGridRowControl()Fields
HighlightSelectionBorderVisibilityProperty
Identifies the Syncfusion.UI.Xaml.DataGrid.DataGridRowControl.HighlightSelectionBorderVisibility dependency property.
Declaration
public static readonly DependencyProperty HighlightSelectionBorderVisibilityPropertyField Value
| Type | 
|---|
| Microsoft.UI.Xaml.DependencyProperty | 
Remarks
The identifier for the Syncfusion.UI.Xaml.DataGrid.DataGridRowControl.HighlightSelectionBorderVisibility dependency property.
RowHoverForegroundProperty
Identifies the RowHoverForeground dependency property.
Declaration
public static readonly DependencyProperty RowHoverForegroundPropertyField Value
| Type | 
|---|
| Microsoft.UI.Xaml.DependencyProperty | 
SelectionBorderVisibilityProperty
Identifies the Syncfusion.UI.Xaml.DataGrid.DataGridRowControl.SelectionBorderVisibility dependency property.
Declaration
public static readonly DependencyProperty SelectionBorderVisibilityPropertyField Value
| Type | 
|---|
| Microsoft.UI.Xaml.DependencyProperty | 
Remarks
The identifier for the Syncfusion.UI.Xaml.DataGrid.DataGridRowControl.SelectionBorderVisibility dependency property.
SelectionForegroundProperty
Identifies the Syncfusion.UI.Xaml.DataGrid.DataGridRowControl.SelectionForeground dependency property.
Declaration
public static readonly DependencyProperty SelectionForegroundPropertyField Value
| Type | 
|---|
| Microsoft.UI.Xaml.DependencyProperty | 
Remarks
The identifier for the Syncfusion.UI.Xaml.DataGrid.DataGridRowControl.SelectionForeground dependency property.
Properties
HighlightSelectionBorderVisibility
Gets or Sets HighlightSelectionBorder visibility. Which is bind to the selection border visibility property
Declaration
public Visibility HighlightSelectionBorderVisibility { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.Visibility | 
RowBorderState
This property is used for Frozen and Footer rows to highlight the freezed rows.
Declaration
public string RowBorderState { get; set; }Property Value
| Type | 
|---|
| System.String | 
RowHoverForeground
Gets or sets the value for foreground when hovering the row.
Declaration
public Brush RowHoverForeground { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.Media.Brush | 
SelectionBorderVisibility
Gets or sets SelectionBorder visibility. Which is bind to the Selection Border visibility property
Declaration
public Visibility SelectionBorderVisibility { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.Visibility | 
SelectionForeground
Gets or sets the value for SelectionForeground.
Declaration
public Brush SelectionForeground { get; set; }Property Value
| Type | 
|---|
| Microsoft.UI.Xaml.Media.Brush | 
Methods
ApplyFixedRowVisualState(Boolean)
Invoked to apply visual state for the fixed rows.
Declaration
protected virtual void ApplyFixedRowVisualState(bool canApplyDefaultState = true)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | canApplyDefaultState | 
Dispose()
Disposes all the resources used by the DataGridRowControl class.
Declaration
public void Dispose()Dispose(Boolean)
Disposes all the resources used by the DataGridRowControl class.
Declaration
protected virtual void Dispose(bool isDisposing)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. | 
OnApplyTemplate()
Invoked to apply template for datagrid rows.
Declaration
protected override void OnApplyTemplate()OnCreateAutomationPeer()
Returns a class-specific AutomationPeer Implementations for the Microsoft UI Automation infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()Returns
| Type | Description | 
|---|---|
| Microsoft.UI.Xaml.Automation.Peers.AutomationPeer | The class-specific AutomationPeer subclass. | 
OnLoaded(Object, RoutedEventArgs)
Invoked when data grid rows are loaded.
Declaration
protected virtual void OnLoaded(object sender, RoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | sender | |
| Microsoft.UI.Xaml.RoutedEventArgs | e | 
OnPointerEntered(PointerRoutedEventArgs)
Called before the PointerEntered event occurs.
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | e | 
OnPointerExited(PointerRoutedEventArgs)
Called before the PointerExited event occurs.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | e | 
OnPointerReleased(PointerRoutedEventArgs)
Called before the PointerReleased event occurs.
Declaration
protected override void OnPointerReleased(PointerRoutedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| Microsoft.UI.Xaml.Input.PointerRoutedEventArgs | e | 
OnSizeChanged(Object, SizeChangedEventArgs)
Invoked when the size changed.
Declaration
protected virtual void OnSizeChanged(object sender, SizeChangedEventArgs e)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | sender | |
| Microsoft.UI.Xaml.SizeChangedEventArgs | e | 
SetContent()
Sets the content of a content control.
Declaration
protected virtual void SetContent()UnwireEvents()
Unwires the events.
Declaration
protected virtual void UnwireEvents()WireEvents()
Wires the events.
Declaration
protected virtual void WireEvents()