Class GridRow
Holds information about a row. Each GridRow contains a VirtualizingRowPanel which is added as children into the VisualContainer. Create or reuse the GridColumn(Which contains the cellElement(GridCell) and its information) based on visible cells in this row. Those cells will updated when measure or layout is affected.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.CellGrid
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class GridRow : IRowElement, IDisposable
Constructors
GridRow(SfCellGrid)
Creates a new instance.
Declaration
public GridRow(SfCellGrid grid)
Parameters
Type | Name | Description |
---|---|---|
SfCellGrid | grid | An instance of SfCellGrid. |
Properties
Element
Gets the Panel of this row.
Declaration
public VirtualizingRowPanel Element { get; }
Property Value
Type |
---|
VirtualizingRowPanel |
Index
Gets or sets the row index
Declaration
public int Index { get; set; }
Property Value
Type |
---|
System.Int32 |
IsEnsured
Determines whether the row is already ensured or not.
Declaration
public bool IsEnsured { get; set; }
Property Value
Type |
---|
System.Boolean |
IsVisible
Gets or sets the Visibility.
Declaration
public bool IsVisible { get; set; }
Property Value
Type |
---|
System.Boolean |
Region
Gets or sets the row region
Declaration
public ScrollAxisRegion Region { get; set; }
Property Value
Type |
---|
ScrollAxisRegion |
Methods
Dispose()
Call the Dispose and SuppressFinalize method for dipose the instance of GridRow class.
Declaration
public void Dispose()
Dispose(Boolean)
Dispose the live resources used by the GridRow class.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Dispose the instance, if it is True |
EnsureColumns()
Used to ensure and update the column elements when horizontal scrolling or width of the layout is changed.
Declaration
public void EnsureColumns()
GenerateVisibleCells()
Used to generate the column elements based on visible cells
Declaration
public void GenerateVisibleCells()
UpdateCells()
Used to update the column elements based on visiblecolumns information
Declaration
public void UpdateCells()