Interface IRowGenerator
Defines properties and methods that must be implemented when generating the grid row elements.
Namespace: Syncfusion.SfDataGrid.XForms
Assembly: Syncfusion.SfDataGrid.XForms.dll
Syntax
public interface IRowGenerator
Properties
Items
Gets the list of row elements in the SfDataGrid.
Declaration
List<DataRowBase> Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Syncfusion.SfDataGrid.XForms.DataRowBase> | The list of row elements in the SfDataGrid. |
Owner
Gets or sets an instance of the SfDataGrid control.
Declaration
SfDataGrid Owner { get; set; }
Property Value
Type | Description |
---|---|
SfDataGrid | An instance of the SfDataGrid control. |
Methods
ApplyColumnSizer(Double)
Apply ColumnSizer calculations to the grid columns.
Declaration
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
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
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
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
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. |
EnsureColumns(VisibleLinesCollection)
Ensures the visible columns in each row.
Declaration
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
void EnsureRows(VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
Parameters
Type | Name | Description |
---|---|---|
VisibleLinesCollection | visibleRows | The visible row line collection. |
VisibleLinesCollection | visibleColumns | The visible column line collection. |
PreGenerateRows(VisibleLinesCollection, VisibleLinesCollection)
Generates the row elements that occupy the view space for the first time.
Declaration
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
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 | Returns a boolean value denoting whether the event is handled. |