Class GridUnboundRow
Represents the UnboundRow which used to display additional rows which are not bound to data source in SfDataGrid.
Inheritance
Namespace: Syncfusion.UI.Xaml.DataGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class GridUnboundRow : DependencyObject, INotifyDependencyPropertyChanged, IDisposable
Remarks
SfDataGrid allows you to add additional rows at the top and also bottom of the SfDataGrid which are not bound with data object from underlying data source. You can add unbound rows using UnboundRows collection property. You can add any no of unbound rows to SfDataGrid.
Constructors
GridUnboundRow()
Declaration
public GridUnboundRow()
Fields
PositionProperty
Identifies the Position dependency property.
Declaration
public static readonly DependencyProperty PositionProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Remarks
The identifier for the Position dependency property.
ShowBelowSummaryProperty
Identifies the ShowBelowSummary dependency property.
Declaration
public static readonly DependencyProperty ShowBelowSummaryProperty
Field Value
Type |
---|
Microsoft.UI.Xaml.DependencyProperty |
Remarks
The identifier for the ShowBelowSummary dependency property.
Properties
Position
Gets or sets a value that indicates whether the GridUnBoundRow is positioned at either top or bottom of SfDataGrid.
Declaration
public UnboundRowsPosition Position { get; set; }
Property Value
Type | Description |
---|---|
UnboundRowsPosition | One of the UnboundRowsPosition enumeration that specifies the position of GridUnBoundRow in SfDataGrid. The default value is Top . |
RowIndex
Gets the row index of the UnboundRow.
Declaration
public int RowIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The corresponding row index of UnboundRow. |
ShowBelowSummary
Gets or sets a value that indicates whether the GridUnBoundRow should be displayed above or below the TableSummaryRow.
Declaration
public bool ShowBelowSummary { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the UnboundRow is displayed below the TableSummaryRow; otherwise, false. The default value is true. |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | When you change the placement of UnboundRow at run time. |
UnboundRowIndex
Gets the index of UnboundRow from the GridUnBoundRow collection.
Declaration
public int UnboundRowIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Index of the Unboundrow. |
Methods
Dispose()
Releases all the resources used by the GridUnboundRow class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the GridUnboundRow 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. |
OnDependencyPropertyChanged(String, DependencyPropertyChangedEventArgs)
Invoked whenever the value of any dependency property in the UnBoundRow has been updated.
Declaration
public void OnDependencyPropertyChanged(string propertyName, DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The property name that has changed in UnBoundRow. |
Microsoft.UI.Xaml.DependencyPropertyChangedEventArgs | e | Microsoft.UI.Xaml.DependencyPropertyChangedEventArgs that contains the data for various dependency property changed events. |