Class GridUnBoundRow
Represents the UnboundRow which used to display additional rows which are not bound to data source in SfDataGrid.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.WPF.dll
Syntax
public class GridUnBoundRow : DependencyObject, INotifyDependencyPropertyChanged
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 SfDataGrid.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 |
---|
System.Windows.DependencyProperty |
Remarks
The identifier for the Position dependency property.
ShowBelowSummaryProperty
Identifies the ShowBelowSummary dependency property.
Declaration
public static readonly DependencyProperty ShowBelowSummaryProperty
Field Value
Type |
---|
System.Windows.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. |
System.Windows.DependencyPropertyChangedEventArgs | e | System.Windows.DependencyPropertyChangedEventArgs that contains the data for various dependency property changed events. |