Interface IRowGenerator
Defines properties and methods that must be implemented when generating the grid row elements.
Namespace: Syncfusion.SfDataGrid
Assembly: Syncfusion.SfDataGrid.Android.dll
Syntax
public interface IRowGenerator
  Properties
Items
Gets the list of row elements in the SfDataGrid control.
Declaration
List<DataRowBase> Items { get; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.List<Syncfusion.SfDataGrid.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 column sizer 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 columns in each row.
Declaration
void EnsureColumns(VisibleLinesCollection visibleColumns)
  Parameters
| Type | Name | Description | 
|---|---|---|
| VisibleLinesCollection | visibleColumns | The visible column lines.  | 
      
EnsureRows(VisibleLinesCollection, VisibleLinesCollection)
Ensures the rows that are available in the view.
Declaration
void EnsureRows(VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
  Parameters
| Type | Name | Description | 
|---|---|---|
| VisibleLinesCollection | visibleRows | The visible row lines.  | 
      
| VisibleLinesCollection | visibleColumns | The visible column lines.  | 
      
PreGenerateRows()
Generates the row elements that occupy the view space for the first time.
Declaration
void PreGenerateRows()
  QueryRowHeight(Int32, ref Double)
Raises the QueryRowHeight event and returns a boolean value denoting whether the event is handled.
Declaration
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
void RefreshRowDraw()