Class DataRowBase
Implements
Namespace: Syncfusion.UI.Xaml.Grid
Assembly: Syncfusion.SfGrid.UWP.dll
Syntax
public abstract class DataRowBase : Object, IRowElement, IElement, INotifyPropertyChanged, IComparable, IDisposable
Constructors
DataRowBase()
Initializes a new instance of DataRowBase class.
Declaration
protected DataRowBase()
Fields
suspendUpdateStyle
Declaration
protected bool suspendUpdateStyle
Field Value
| Type |
|---|
| System.Boolean |
Properties
ArrangeRect
Gets or sets the ArrangeRect.
Declaration
public Rect ArrangeRect { get; set; }
Property Value
| Type |
|---|
| Windows.Foundation.Rect |
Element
Gets the base element for Windows runtime UI objects.
Declaration
public FrameworkElement Element { get; }
Property Value
| Type |
|---|
| Windows.UI.Xaml.FrameworkElement |
Index
Gets the index.
Declaration
public int Index { get; }
Property Value
| Type |
|---|
| System.Int32 |
IsCurrentRow
Gets or sets a value indicating whether is it current row or not.
Declaration
public bool IsCurrentRow { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
IsEditing
Gets or sets a value indicating whether is it in editing or not.
Declaration
public bool IsEditing { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
IsExpanded
Gets or sets a value indicating whether is it expanded or not.
Declaration
public bool IsExpanded { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
IsFixedRow
This flag will be set to True only for FixedGroupCaptions.
Declaration
public bool IsFixedRow { get; }
Property Value
| Type |
|---|
| System.Boolean |
IsFocusedRow
Get or sets the value indicating row is focused or not.
Declaration
public bool IsFocusedRow { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
IsSelectedRow
Gets or sets a value indicating whether this row is selected or not
Declaration
public bool IsSelectedRow { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | true if this instance ; otherwise, false. |
IsSpannedRow
Gets a value indicating whether the specified column is spanned or not.
Declaration
public bool IsSpannedRow { get; }
Property Value
| Type |
|---|
| System.Boolean |
Level
Gets the level.
Declaration
public int Level { get; }
Property Value
| Type |
|---|
| System.Int32 |
RowData
Gets or sets the Row data.
Declaration
public object RowData { get; set; }
Property Value
| Type |
|---|
| System.Object |
RowIndex
Gets or sets the row index.
Declaration
public int RowIndex { get; }
Property Value
| Type |
|---|
| System.Int32 |
RowRegion
Gets or sets the row region.
Declaration
public RowRegion RowRegion { get; }
Property Value
| Type |
|---|
| RowRegion |
RowType
Gets or sets the row type.
Declaration
public RowType RowType { get; }
Property Value
| Type |
|---|
| RowType |
VisibleColumns
Get the List of DataColumnBase maintained in DataRow
Declaration
public List<DataColumnBase> VisibleColumns { get; }
Property Value
| Type |
|---|
| System.Collections.Generic.List<DataColumnBase> |
WholeRowElement
Gets the row element VirtualizingCellsControl of SfDataGrid.
Declaration
protected VirtualizingCellsControl WholeRowElement { get; }
Property Value
| Type |
|---|
| VirtualizingCellsControl |
Methods
ArrangeElement(Rect)
Positions child objects and determines a size for a UiElement.
Declaration
public virtual void ArrangeElement(Rect rect)
Parameters
| Type | Name | Description |
|---|---|---|
| Windows.Foundation.Rect | rect | The corresponding rectangle. |
CollapseColumn(DataColumnBase)
Collapses the column.
Declaration
protected virtual void CollapseColumn(DataColumnBase column)
Parameters
| Type | Name | Description |
|---|---|---|
| DataColumnBase | column | The corresponding column. |
CompareTo(Object)
Compares this instance to a specified object
Declaration
public int CompareTo(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The specified object. |
Returns
| Type | Description |
|---|---|
| System.Int32 | An integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the specified object. |
CreateIndentColumn(Int32)
Creates a indent column.
Declaration
protected abstract DataColumnBase CreateIndentColumn(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The specified index. |
Returns
| Type | Description |
|---|---|
| DataColumnBase | A indent column. |
Dispose()
Disposes all the resources used by the DataRowBase class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the DataRowBase 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. |
GetColumnSize(Int32, Boolean)
Gets the column size.
Declaration
protected virtual double GetColumnSize(int index, bool lineNull)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The specified column. |
| System.Boolean | lineNull | Indicates whether to retrieve the size from the visible lines or from the range. |
Returns
| Type | Description |
|---|---|
| System.Double | The column size. |
GetColumnVisibleLineInfo(Int32)
Gets the visible line information for the specified column.
Declaration
protected virtual VisibleLineInfo GetColumnVisibleLineInfo(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The specified column index. |
Returns
| Type | Description |
|---|---|
| VisibleLineInfo | The visible line information for the specified column. |
GetDataRow()
Gets the data row.
Declaration
protected virtual DataRowBase GetDataRow()
Returns
| Type | Description |
|---|---|
| DataRowBase | The data row. |
GetRowSize(DataColumnBase, Boolean)
Gets the row size.
Declaration
protected virtual double GetRowSize(DataColumnBase dataColumn, bool lineNull)
Parameters
| Type | Name | Description |
|---|---|---|
| DataColumnBase | dataColumn | The specified column. |
| System.Boolean | lineNull | Indicates whether to retrieve the size from the visible lines or from the range. |
Returns
| Type | Description |
|---|---|
| System.Double | The row size. |
GetRowVisibleLineInfo(Int32)
Gets the visible line information for the specified row.
Declaration
protected virtual VisibleLineInfo GetRowVisibleLineInfo(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The specified row index. |
Returns
| Type | Description |
|---|---|
| VisibleLineInfo | The visbile line information for the speicified row. |
GetVisibleColumns()
Gets the visible columns.
Declaration
protected IList<DataColumnBase> GetVisibleColumns()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IList<DataColumnBase> | The visible columns. |
MeasureElement(Size)
Updates the DesiredSize of a UIElement.
Declaration
public virtual void MeasureElement(Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| Windows.Foundation.Size | size | The corresponding size. |
OnCreateRowElement()
Declaration
protected abstract VirtualizingCellsControl OnCreateRowElement()
Returns
| Type |
|---|
| VirtualizingCellsControl |
OnExpandedStateChanged()
Invoked when the expander state changed.
Declaration
protected virtual void OnExpandedStateChanged()
OnGenerateVisibleColumns(VisibleLinesCollection)
Generates the visible columns.
Declaration
protected abstract void OnGenerateVisibleColumns(VisibleLinesCollection visibleColumnLines)
Parameters
| Type | Name | Description |
|---|---|---|
| VisibleLinesCollection | visibleColumnLines | The corresponding visible column lines. |
OnPropertyChanged(String)
Invoked when the specified property changed.
Declaration
public void OnPropertyChanged(string propertyName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | propertyName | The specified property. |
OnRowDataChanged()
Invoked when the row data changed.
Declaration
protected virtual void OnRowDataChanged()
OnRowIndexChanged()
Invoked when the row index changed.
Declaration
protected virtual void OnRowIndexChanged()
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
|---|
| System.ComponentModel.PropertyChangedEventHandler |