menu

WinForms

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

    Show / Hide Table of Contents

    Class DataRow

    Represents the class that holds the data of the rows.

    Inheritance
    System.Object
    DataRowBase
    DataRow
    DetailsViewDataRow
    PreviewDataRow
    FilterRow
    SpannedDataRow
    UnboundRow
    Implements
    System.IDisposable
    Inherited Members
    DataRowBase.Dispose()
    DataRowBase.Dispose(Boolean)
    DataRowBase.GetColumnVisibleLineInfo(Int32)
    DataRowBase.GetVisibleColumns()
    DataRowBase.Index
    DataRowBase.IsCurrentRow
    DataRowBase.IsEditing
    DataRowBase.IsExpanded
    DataRowBase.IsSelectedRow
    DataRowBase.IsSpannedRow
    DataRowBase.Level
    DataRowBase.OnRowIndexChanged()
    DataRowBase.RowData
    DataRowBase.RowIndex
    DataRowBase.RowRegion
    DataRowBase.RowType
    DataRowBase.VisibleColumns
    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 class DataRow : DataRowBase, IDisposable

    Constructors

    DataRow()

    Initializes a new instance of the DataRow class.

    Declaration
    public DataRow()

    Methods

    CreateDetailsViewExpanderColumn(Int32)

    Creates the DetailsView expander column.

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

    The index of the row.

    Returns
    Type Description
    DataColumnBase

    Returns the created expander column.

    CreateGroupExpanderColumn(Int32)

    Adding the expander column for the spanned data row.

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

    The index of the column that needs to be changed as the expander.

    Returns
    Type Description
    DataColumnBase

    Returns the new expander column.

    CreateIndentColumn(Int32)

    Overridden to create the indent column at the given index.

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

    The index that needs to be added as the indent.

    Returns
    Type Description
    DataColumnBase

    Returns the new indent column.

    Overrides
    DataRowBase.CreateIndentColumn(Int32)

    CreatePreviewRowExpanderColumn(Int32)

    Creates the PreviewRow expander column.

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

    The index of the row.

    Returns
    Type Description
    DataColumnBase

    Returns the created expander column.

    CreateRowHeaderColumn(Int32)

    Creates the row header for the desired row.

    Declaration
    protected void CreateRowHeaderColumn(int index)
    Parameters
    Type Name Description
    System.Int32 index

    Index of the row.

    GetColumnSize(Int32, Boolean)

    Overridden to gets the size of the given column index.

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

    The index of the column.

    System.Boolean lineNull

    Indicates whether to retrieve the size from the visible lines or from the range.

    Returns
    Type Description
    System.Double

    Returns the size of the column.

    Overrides
    DataRowBase.GetColumnSize(Int32, Boolean)

    GetRowSize(DataColumnBase, Boolean)

    Gets the row size of the given DataColumnbase.

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

    The DataColumnBase of the cell.

    System.Boolean lineNull

    Indicates whether to retrieve the size from the visible lines or from the range.

    Returns
    Type Description
    System.Double

    Returns the size of the Row.

    Overrides
    DataRowBase.GetRowSize(DataColumnBase, Boolean)

    OnGenerateVisibleColumns(VisibleLinesCollection)

    Overridden to update the VisibleColumns collection while generating the visible columns.

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

    The columns that are need to be generated.

    Overrides
    DataRowBase.OnGenerateVisibleColumns(VisibleLinesCollection)

    Implements

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