menu

WinForms

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

    Show / Hide Table of Contents

    Class RowGenerator

    Represents a class that used to generate the data row of the SfDataGrid.

    Inheritance
    System.Object
    RowGenerator
    Implements
    IRowGenerator
    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 class RowGenerator : IRowGenerator, IDisposable

    Constructors

    RowGenerator(SfDataGrid)

    Initializes a new instance of the RowGenerator class.

    Declaration
    public RowGenerator(SfDataGrid owner)
    Parameters
    Type Name Description
    SfDataGrid owner

    The owner control of the row generator.

    Properties

    Items

    Gets or sets the list of data rows.

    Declaration
    public List<DataRowBase> Items { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<DataRowBase>

    Owner

    Gets or sets the owner of the data row.

    Declaration
    public SfDataGrid Owner { get; set; }
    Property Value
    Type
    SfDataGrid

    View

    Gets the view for SfDataGrid.

    Declaration
    public ICollectionViewAdv View { get; }
    Property Value
    Type
    ICollectionViewAdv

    Methods

    ColumnInserted(Int32, Int32)

    Updates the index of the visible columns based on the count of the inserted column index and the indent columns count.

    Declaration
    public void ColumnInserted(int index, int count)
    Parameters
    Type Name Description
    System.Int32 index

    Inserted index.

    System.Int32 count

    The count to be added to the index of the columns.

    ColumnRemoved(Int32, Int32)

    Removes the columns from the visible columns collection and updates the column index of the existing columns.

    Declaration
    public void ColumnRemoved(int index, int count)
    Parameters
    Type Name Description
    System.Int32 index

    The index of the column that needs to be removed.

    System.Int32 count

    The number of columns need to be removed from the index.

    Dispose()

    Disposes the resources used by the RowGenerator.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Disposes of the resources used by the RowGenerator.

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

    Indicates whether the call is from the Dispose method.

    EnsureColumns(VisibleLinesCollection)

    Creates or updates the visible columns of the grid.

    Declaration
    public void EnsureColumns(VisibleLinesCollection visibleColumns)
    Parameters
    Type Name Description
    VisibleLinesCollection visibleColumns

    The list of columns that needs to be ensured.

    EnsureRows(VisibleLinesCollection)

    Creates or updates the row associated properties like RowIndex, RowData, row state and its selection while scrolling and Data manipulation Operation based on VisibleRows.

    Declaration
    public virtual void EnsureRows(VisibleLinesCollection visibleRows)
    Parameters
    Type Name Description
    VisibleLinesCollection visibleRows

    The collection of visible rows.

    OnItemSourceChanged(Object, Object)

    Occurs when the ItemSource for SFDataGrid is changed.

    Declaration
    public void OnItemSourceChanged(object oldValue, object newValue)
    Parameters
    Type Name Description
    System.Object oldValue

    Old ItemsSource

    System.Object newValue

    New ItemsSource

    Explicit Interface Implementations

    IRowGenerator.Items

    Gets the list of data rows in the row generator.

    Declaration
    IList<DataRowBase> IRowGenerator.Items { get; }
    Returns
    Type
    System.Collections.Generic.IList<DataRowBase>

    Implements

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