WinUI

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RowGenerator

    Show / Hide Table of Contents

    Class RowGenerator

    Represents a class that provides the generation of data grid rows.

    Inheritance
    System.Object
    RowGenerator
    Implements
    IRowGenerator
    System.IDisposable
    Namespace: Syncfusion.UI.Xaml.DataGrid
    Assembly: Syncfusion.Grid.WinUI.dll
    Syntax
    public class RowGenerator : Object, IRowGenerator, IDisposable

    Constructors

    RowGenerator(SfDataGrid)

    Intializes a new instance of RowGenerator class.

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

    Properties

    CanResetDataContext

    Denotes whether reset the DataContext for DataRow when it's going out of view.

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

    Items

    Gets or sets the items.

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

    Owner

    Gets or sets the datagrid.

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

    View

    Gets the ICollectionViewAdv for the View.

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

    Methods

    ApplyColumnSizeronInitial(Double)

    Invoked to apply column sizer.

    Declaration
    public void ApplyColumnSizeronInitial(double availableWidth)
    Parameters
    Type Name Description
    System.Double availableWidth

    The corresponding available width.

    ApplyFixedRowVisualState(Int32, Boolean)

    Invoked to apply visual states for rows.

    Declaration
    public void ApplyFixedRowVisualState(int index, bool canapply)
    Parameters
    Type Name Description
    System.Int32 index

    The corresponding row index.

    System.Boolean canapply

    Indicates a value whether visual state can be applied or not.

    ColumnHiddenChanged(HiddenRangeChangedEventArgs)

    Invoked when the hidden state of column changed.

    Declaration
    public void ColumnHiddenChanged(HiddenRangeChangedEventArgs args)
    Parameters
    Type Name Description
    HiddenRangeChangedEventArgs args

    The HiddenRangeChangedEventArgs instance containing the event data.

    ColumnInserted(Int32, Int32)

    Invoked when the column inserted.

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

    The specified index.

    System.Int32 count

    The count.

    ColumnRemoved(Int32, Int32)

    Invoked when the column removed.

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

    The corresponding index.

    System.Int32 count

    The count.

    Dispose()

    Disposes all the resources used by the RowGenerator class.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Disposes all the resources used by the RowGenerator 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.

    EnsureColumns(VisibleLinesCollection)

    Ensures the columns.

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

    The corresponding visible columns.

    EnsureRows(VisibleLinesCollection)

    Method to ensure or update 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

    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
    GridDataRow

    DataRow

    Type Parameters
    Name Description
    T

    type of the row.

    GetGridCell<T>()

    Get the GridCell.

    Declaration
    protected virtual GridCell GetGridCell<T>()
        where T : GridCell, new()
    Returns
    Type Description
    GridCell

    GridCell

    Type Parameters
    Name Description
    T

    Type of the cell.

    GetVirtualizingCellsControl<T>()

    Get the row element for the corresponding data row.

    Declaration
    protected virtual DataGridRowControl GetVirtualizingCellsControl<T>()
        where T : DataGridRowControl, new()
    Returns
    Type Description
    DataGridRowControl

    DataGridRowControl

    Type Parameters
    Name Description
    T

    type of the row.

    LineSizeChanged()

    Invoked when the size of lines changed.

    Declaration
    public void LineSizeChanged()

    OnItemSourceChanged(DependencyPropertyChangedEventArgs)

    Invoked when the items source changed.

    Declaration
    public void OnItemSourceChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    Microsoft.UI.Xaml.DependencyPropertyChangedEventArgs args

    The Microsoft.UI.Xaml.DependencyPropertyChangedEventArgs contains the event data.

    PregenerateRows(VisibleLinesCollection, VisibleLinesCollection)

    Invoked to pregenerate rows.

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

    The corresponding visible rows.

    VisibleLinesCollection visibleColumns

    The corresponding visible columns.

    QueryRowHeight(Int32, ref Double)

    Gets a value indicating whether QueryRowHeightEventArgs for specified row is handled or not.

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

    The corresponding row index.

    System.Double height

    The Height.

    Returns
    Type Description
    System.Boolean

    RefreshStackedHeaders()

    Refreshing StackedHeaders after the changes in GridColumn collection

    Declaration
    public void RefreshStackedHeaders()

    ResetSelection()

    Resets the selection.

    Declaration
    public void ResetSelection()

    RowHiddenChanged(HiddenRangeChangedEventArgs)

    Invoked when the hidden state of row changed.

    Declaration
    public void RowHiddenChanged(HiddenRangeChangedEventArgs args)
    Parameters
    Type Name Description
    HiddenRangeChangedEventArgs args

    The HiddenRangeChangedEventArgs instance containing the event data.

    RowsArranged(Size)

    Invoked when the rows arranged.

    Declaration
    public void RowsArranged(Size finalSize)
    Parameters
    Type Name Description
    Windows.Foundation.Size finalSize

    The corresponding size.

    Explicit Interface Implementations

    IRowGenerator.Items

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

    Implements

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