Class GridNestedTableControl
Represents a windowless grid control that displays rows with DisplayElements of a nested GridTable inside a parent table control. One GridNestedTableControl is created for every nested relation. A GridNestedTableControl is shared among all ChildTable tables for a relation.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridNestedTableControl : GridTableControl, IDisposable, ICancelModeProvider, ISplitterPaneSupport, IScrollBarWrapperContainer, ISupportUpdating, ISupportIntelliMouse, IQueryFocusInside, INonClientPaintingSupport, IThemedControl, ICreateNewWindow, IGridModelSource, IGridWindowlessSite, IGridWindowlessObject, IFindParentForm, IThemeProvider, IVisualStyle, ITableProvider
Constructors
GridNestedTableControl(GridTableModel, GridTableControl, GridNestedTableControlCellRenderer)
Initializes the new instance of the GridNestedTableControl class with its model and the parent control that it will be displayed in.
Declaration
public GridNestedTableControl(GridTableModel model, GridTableControl parentGrid, GridNestedTableControlCellRenderer parentRenderer)
Parameters
Type | Name | Description |
---|---|---|
GridTableModel | model | The table model. |
GridTableControl | parentGrid | The parent control. |
GridNestedTableControlCellRenderer | parentRenderer | The GridNestedTableControlCellRenderer which hosts this control. |
Properties
CurrentCell
Gets the current cell for this nested table.
Declaration
public override GridCurrentCell CurrentCell { get; }
Property Value
Type |
---|
GridCurrentCell |
Overrides
HideFirstRow
Gets or sets a value indicating whether to hide the first row or not. Internal only.
Declaration
public bool HideFirstRow { get; set; }
Property Value
Type |
---|
System.Boolean |
ParentRenderer
Gets the GridNestedTableControlCellRenderer which is the parent cell of this nested table control.
Declaration
public GridNestedTableControlCellRenderer ParentRenderer { get; }
Property Value
Type |
---|
GridNestedTableControlCellRenderer |
Methods
Dispose(Boolean)
Overrides and manages the unwanted resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
DrawGrid(Graphics, Boolean)
Overrides and draws the grid to the specified graphics canvas.
Declaration
public override void DrawGrid(Graphics g, bool shouldClip)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The instance of theSystem.Drawing.Graphics class. |
System.Boolean | shouldClip | Specifies if the clipping region should be saved and restored after the grid is drawn. |
Overrides
OnDrawClientRowCol(Int32, Int32, Int32, Int32, Graphics, Rectangle)
Overrides and draws specified range of visible cells that need repainting when the grid engine wants to redraw a specific range of cells.
Declaration
public override void OnDrawClientRowCol(int topRow, int leftCol, int bottomRow, int rightCol, Graphics g, Rectangle rectClip)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | topRow | Top row index. |
System.Int32 | leftCol | Left column index. |
System.Int32 | bottomRow | Bottom row index. |
System.Int32 | rightCol | Right column index. |
System.Drawing.Graphics | g | The instance of the System.Drawing.Graphics class. |
System.Drawing.Rectangle | rectClip | Clipping rectangle. |
Overrides
OnLeftColChanging(GridRowColIndexChangingEventArgs)
Overrides and triggered when the left column getting change.
Declaration
protected override void OnLeftColChanging(GridRowColIndexChangingEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridRowColIndexChangingEventArgs | e | The GridRowColIndexChangingEventArgs contains the event data. |
Overrides
OnMouseWheel(MouseEventArgs)
Overrides and triggered when the System.Windows.Forms.Control.MouseWheel event is done.
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs contains the event data. |
Overrides
OnTopRowChanging(GridRowColIndexChangingEventArgs)
Overrides and triggered when the top row getting change.
Declaration
protected override void OnTopRowChanging(GridRowColIndexChangingEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GridRowColIndexChangingEventArgs | e | The GridRowColIndexChangingEventArgs contains the event data. |
Overrides
ProcessScrollCellInView(Int32, Int32, Boolean, GridScrollCurrentCellReason)
Overrides and process the scrolling of the specified cell into view.
Declaration
public override bool ProcessScrollCellInView(int rowIndex, int colIndex, bool dontScroll, GridScrollCurrentCellReason reason)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row index. |
System.Int32 | colIndex | Column index. |
System.Boolean | dontScroll | Specifies if the top row index and left column index should be changed without raising scroll events and without updating the screen (calling DoScroll). |
GridScrollCurrentCellReason | reason | The reason for scrolling the current cell into view (e.g. KeyPress, GridFocus etc.) |
Returns
Type | Description |
---|---|
System.Boolean | True if scrolling the grid was necessary; False if the range was already in the visible area. |
Overrides
Table_CurrentRecordContextChange(Object, CurrentRecordContextChangeEventArgs)
Overrides and triggers when the current record context gets changed.
Declaration
protected override void Table_CurrentRecordContextChange(object sender, CurrentRecordContextChangeEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The Control. |
CurrentRecordContextChangeEventArgs | e | The CurrentRecordContextChangeEventArgs contains the event data. |
Overrides
Update()
Overrides and updates the control.
Declaration
public override void Update()