menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataRowBase - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataRowBase

    Represents an abstract base class for the data row that used to holds the row data.

    Inheritance
    System.Object
    DataRowBase
    DataRow
    Implements
    System.IDisposable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.WinForms.DataGrid
    Assembly: Syncfusion.SfDataGrid.WinForms.dll
    Syntax
    public abstract class DataRowBase : IDisposable

    Constructors

    DataRowBase()

    Declaration
    protected DataRowBase()

    Properties

    Index

    Gets a value indicates the index of the data row.

    Declaration
    public int Index { get; }
    Property Value
    Type
    System.Int32

    IsCurrentRow

    Gets or sets a value indicating whether the row is current row or not.

    Declaration
    public bool IsCurrentRow { get; set; }
    Property Value
    Type
    System.Boolean

    IsEditing

    Gets or sets a value indicating whether the row is in editing or not.

    Declaration
    public bool IsEditing { get; set; }
    Property Value
    Type
    System.Boolean

    IsExpanded

    Gets a value indicating whether the row is expanded.

    Declaration
    public bool IsExpanded { get; }
    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 row is spanned or not.

    Declaration
    public bool IsSpannedRow { get; }
    Property Value
    Type
    System.Boolean

    Level

    Gets the level of the data row.

    Declaration
    public int Level { get; }
    Property Value
    Type
    System.Int32

    RowData

    Gets or sets the data of the row.

    Declaration
    public object RowData { get; set; }
    Property Value
    Type
    System.Object

    RowIndex

    Gets the index of the data row.

    Declaration
    public int RowIndex { get; }
    Property Value
    Type
    System.Int32

    RowRegion

    Gets the of the row.

    Declaration
    public RowRegion RowRegion { get; }
    Property Value
    Type
    RowRegion

    RowType

    Gets the type of the row.

    Declaration
    public RowType RowType { get; }
    Property Value
    Type
    RowType

    VisibleColumns

    Gets the visible columns collection.

    Declaration
    public List<DataColumnBase> VisibleColumns { get; }
    Property Value
    Type
    System.Collections.Generic.List<DataColumnBase>

    Methods

    CreateIndentColumn(Int32)

    Declares an abstract method for creating the indent column.

    Declaration
    protected abstract DataColumnBase CreateIndentColumn(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index that needs to be added as the indent column.

    Returns
    Type Description
    DataColumnBase

    Returns the new indent column.

    Dispose()

    Disposes of the resources used by the DataRowBase.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Disposes of the resources used by the DataRowBase.

    Declaration
    protected virtual void Dispose(bool isDispose)
    Parameters
    Type Name Description
    System.Boolean isDispose

    Indicates whether the call is from the Dispose method.

    GetColumnSize(Int32, Boolean)

    Gets the column size of the given column index.

    Declaration
    protected virtual double GetColumnSize(int index, bool lineNull)
    Parameters
    Type Name Description
    System.Int32 index

    The index of the column.

    System.Boolean lineNull

    Indicates whether to fetch the column width from the RangeInfo or from the visible columns.

    Returns
    Type Description
    System.Double

    Returns the column width of the given index.

    GetColumnVisibleLineInfo(Int32)

    Gets the VisibleLineInfo of the given row index.

    Declaration
    protected virtual VisibleLineInfo GetColumnVisibleLineInfo(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index of the row that needs to be retrieve the visible line info.

    Returns
    Type Description
    VisibleLineInfo

    Returns the VisibleLineInfo of the specified index.

    GetRowSize(DataColumnBase, Boolean)

    Gets the size of the given row index.

    Declaration
    protected virtual double GetRowSize(DataColumnBase dataColumn, bool lineNull)
    Parameters
    Type Name Description
    DataColumnBase dataColumn

    The DataColumnBase of the row.

    System.Boolean lineNull

    Indicates whether to fetch the row height from the RangeInfo or from the visible columns.

    Returns
    Type Description
    System.Double

    Returns the row height of the given index.

    GetVisibleColumns()

    Gets the list of visible columns.

    Declaration
    protected IList<DataColumnBase> GetVisibleColumns()
    Returns
    Type Description
    System.Collections.Generic.IList<DataColumnBase>

    Returns the list of columns that are in view.

    OnGenerateVisibleColumns(VisibleLinesCollection)

    Declares an abstract method for generating the visible columns.

    Declaration
    protected abstract void OnGenerateVisibleColumns(VisibleLinesCollection visibleColumnLines)
    Parameters
    Type Name Description
    VisibleLinesCollection visibleColumnLines

    The list of visible columns.

    OnRowIndexChanged()

    Updates the row index of the each cell of the data row.

    Declaration
    protected virtual void OnRowIndexChanged()

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved