Class RowGenerator
A class that generates the Syncfusion.SfDataGrid.XForms.DataRow instances in a SfDataGrid control.
Inheritance
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public class RowGenerator : Object, IRowGenerator, IDisposable
Remarks
The Syncfusion.SfDataGrid.XForms.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.XForms.DataRow objects in a SfDataGrid control.
Declaration
public List<DataRowBase> Items { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.SfDataGrid.XForms.DataRowBase> | The collection of Syncfusion.SfDataGrid.XForms.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 ColumnSizer 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()
Perform final clean up before it is released from memory.
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.XForms.GridDataRow | Returns the Syncfusion.SfDataGrid.XForms.DataRow. |
Type Parameters
Name | Description |
---|---|
T | type of the row. |
PreGenerateRows(VisibleLinesCollection, VisibleLinesCollection)
Generates the row elements that occupy the view space for the first time.
Declaration
public void PreGenerateRows(VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
Parameters
Type | Name | Description |
---|---|---|
VisibleLinesCollection | visibleRows | The visible row line collection. |
VisibleLinesCollection | visibleColumns | The visible column line collection. |
QueryRowHeight(Int32, ref Double)
Raises the QueryRowHeight event and returns a boolean value denoting whether the event is handled.
Declaration
public QueryRowHeightEventArgs 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 |
---|---|
QueryRowHeightEventArgs | A boolean value denoting whether the event is handled. |