Class DataGridRow
Represents a DataGrid row.
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Data.dll
Syntax
[TemplatePart(Name = "BottomGridLine", Type = typeof(Rectangle))]
[TemplatePart(Name = "CellsPresenter", Type = typeof(DataGridCellsPresenter))]
[TemplatePart(Name = "DetailsPresenter", Type = typeof(DataGridDetailsPresenter))]
[TemplatePart(Name = "Root", Type = typeof(Panel))]
[TemplatePart(Name = "RowHeader", Type = typeof(DataGridRowHeader))]
[StyleTypedProperty(Property = "HeaderStyle", StyleTargetType = typeof(DataGridRowHeader))]
public class DataGridRow : Control
Constructors
| Improve this Doc View SourceDataGridRow()
Initializes a new instance of the DataGridRow class.
Declaration
public DataGridRow()
Fields
| Improve this Doc View SourceDetailsTemplateProperty
Identifies the DetailsTemplate dependency property.
Declaration
public static readonly DependencyProperty DetailsTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DetailsVisibilityProperty
Identifies the DetailsTemplate dependency property.
Declaration
public static readonly DependencyProperty DetailsVisibilityProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
HeaderProperty
Identifies the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
HeaderStyleProperty
Identifies the HeaderStyle dependency property.
Declaration
public static readonly DependencyProperty HeaderStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsValidProperty
Identifies the IsValid dependency property.
Declaration
public static readonly DependencyProperty IsValidProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceDebug_Index
Declaration
public int Debug_Index { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
DetailsTemplate
Gets or sets the template that is used to display the details section of the row.
Declaration
public DataTemplate DetailsTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate |
DetailsVisibility
Gets or sets a value that indicates when the details section of the row is displayed.
Declaration
public Visibility DetailsVisibility { get; set; }
Property Value
Type | Description |
---|---|
Visibility |
Header
Gets or sets the row header.
Declaration
public object Header { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
HeaderStyle
Gets or sets the style that is used when rendering the row header.
Declaration
public Style HeaderStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
IsValid
Gets a value that indicates whether the data in a row is valid.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceArrangeOverride(Size)
Arranges the content of the DataGridRow.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
Size | finalSize | The final area within the parent that this element should use to arrange itself and its children. |
Returns
Type | Description |
---|---|
Size | The actual size used by the DataGridRow. |
Overrides
| Improve this Doc View SourceGetIndex()
Returns the index of the current row.
Declaration
public int GetIndex()
Returns
Type | Description |
---|---|
System.Int32 | The index of the current row. |
GetRowContainingElement(FrameworkElement)
Returns the row which contains the given element
Declaration
public static DataGridRow GetRowContainingElement(FrameworkElement element)
Parameters
Type | Name | Description |
---|---|---|
FrameworkElement | element | element contained in a row |
Returns
Type | Description |
---|---|
DataGridRow | Row that contains the element, or null if not found |
MeasureOverride(Size)
Measures the children of a DataGridRow to prepare for arranging them during the ArrangeOverride(Size) pass.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
Size | availableSize | The available size that this element can give to child elements. Indicates an upper limit that child elements should not exceed. |
Returns
Type | Description |
---|---|
Size | The size that the System.Windows.Controls.Primitives.DataGridRow determines it needs during layout, based on its calculations of child object allocated sizes. |
Overrides
| Improve this Doc View SourceOnApplyTemplate()
Builds the visual tree for the column header when a new template is applied.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnCreateAutomationPeer()
Creates AutomationPeer (OnCreateAutomationPeer())
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
AutomationPeer |