menu

Xamarin.Android

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

    Show / Hide Table of Contents

    Class RowGenerator

    A class that generates the Syncfusion.SfDataGrid.DataRow instances in a SfDataGrid control.

    Inheritance
    System.Object
    RowGenerator
    Implements
    IRowGenerator
    System.IDisposable
    Namespace: Syncfusion.SfDataGrid
    Assembly: Syncfusion.SfDataGrid.Android.dll
    Syntax
    public class RowGenerator : Object, IRowGenerator, IDisposable
    Remarks

    The Syncfusion.SfDataGrid.DataRow objects are primary row components in a SfDataGrid control. The items collection represents the collection of DataRow objects in the SfDataGrid.

    Constructors

    RowGenerator(SfDataGrid)

    Initializes a new instance of the RowGenerator class.

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

    The SfDataGrid instance.

    Properties

    Items

    Gets or sets the collection of Syncfusion.SfDataGrid.DataRow objects in a SfDataGrid control.

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

    The collection of Syncfusion.SfDataGrid.DataRow objects in a SfDataGrid control.

    Owner

    Gets or sets the reference of the SfDataGrid control.

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

    The reference of the SfDataGrid control.

    View

    Gets the View which refers to the collection view in the SfDataGrid control.

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

    The View in a SfDataGrid control.

    Methods

    ApplyColumnSizer(Double)

    Apply column sizer calculations to the grid columns.

    Declaration
    public void ApplyColumnSizer(double viewSize)
    Parameters
    Type Name Description
    System.Double viewSize

    The size of the view.

    ColumnInserted(Int32, Int32)

    Inserts the given number of column lines at the given index.

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

    The index to insert.

    System.Int32 count

    The column lines count.

    ColumnRemoved(Int32, Int32)

    Removes the given number of column lines starting from the given index.

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

    The index to remove.

    System.Int32 count

    The column lines count.

    ColumnsInserted(Int32, Int32)

    Inserts the given number of column lines at the given index.

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

    The index to insert the columns.

    System.Int32 count

    The column lines count to insert.

    ColumnsRemoved(Int32, Int32)

    Removes the given number of column lines starting from the given index.

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

    The index to remove the columns.

    System.Int32 count

    The column lines count to remove.

    Dispose()

    Releases the resources used by the component.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Releases the unmanaged resources used by the component and optionally releases the managed resources.

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

    if true - release both managed and unmanaged resources; if false - release only unmanaged resources.

    EnsureColumns(VisibleLinesCollection)

    Ensures the visible columns in each row.

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

    The visible column line collection.

    EnsureRows(VisibleLinesCollection, VisibleLinesCollection)

    Ensures the row elements that has to be arranged in the view.

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

    The visible row line collection.

    VisibleLinesCollection visibleColumns

    The visible column line collection.

    GetDataRow<T>(RowType)

    Get the data row.

    Declaration
    protected virtual GridDataRow GetDataRow<T>(RowType rowType)
        where T : GridDataRow, new()
    Parameters
    Type Name Description
    RowType rowType

    Type of the row.

    Returns
    Type Description
    Syncfusion.SfDataGrid.GridDataRow

    DataRow

    Type Parameters
    Name Description
    T

    type of the row.

    PreGenerateRows()

    Generates the row elements that occupy the view space for the first time.

    Declaration
    public void PreGenerateRows()

    QueryRowHeight(Int32, ref Double)

    Raises the QueryRowHeight event and returns a boolean value denoting whether the event is handled.

    Declaration
    public bool QueryRowHeight(int rowIndex, ref double height)
    Parameters
    Type Name Description
    System.Int32 rowIndex

    The index of the row which is to be queried.

    System.Double height

    The height value that is passed as out parameter.

    Returns
    Type Description
    System.Boolean

    A boolean value denoting whether the event is handled.

    RefreshRowDraw()

    Refreshes the drawing in the row to update the cell borders.

    Declaration
    public void RefreshRowDraw()

    Implements

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