Class GridSummarySection
The summary section that contains one or multiple row elements for showing the summary below a group in DisplayElement. The summary information can be determined by calling GetSummaries(Table, out Boolean) on the Group that this summary section belongs to.
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Grid.Grouping
Assembly: Syncfusion.Grid.Grouping.Windows.dll
Syntax
public class GridSummarySection : RowElementsSection, IDisposedEvent, IIsDisposedProperty, ITreeTableCounterSource, ITreeTableSummaryArraySource, IRowElementsContainer, IContainerElement, IElementTreeTableSource, IElement, ISummarySection, IDisposable, IGridTableCellAppearanceSource
Constructors
GridSummarySection(Group)
Initializes a new instance of the GridSummarySection class.
Declaration
public GridSummarySection(Group group)
Parameters
| Type | Name | Description |
|---|---|---|
| Group | group | The group this section is created in. |
Properties
Appearance
The default GridTableCellAppearance with GridTableCellStyleInfo information for cells of this element.
Declaration
public GridTableCellAppearance Appearance { get; set; }
Property Value
| Type |
|---|
| GridTableCellAppearance |
Engine
Gets the engine this element belongs to.
Declaration
public GridEngine Engine { get; }
Property Value
| Type |
|---|
| GridEngine |
EngineTable
Gets the GridTable of the engine this element belongs to.
Declaration
public GridTable EngineTable { get; }
Property Value
| Type |
|---|
| GridTable |
Kind
Gets the kind of display element. It is read only.
Declaration
public override DisplayElementKind Kind { get; }
Property Value
| Type |
|---|
| DisplayElementKind |
Overrides
ParentChildTable
Gets a reference to the child table this element belongs.
Declaration
public GridChildTable ParentChildTable { get; }
Property Value
| Type |
|---|
| GridChildTable |
ParentRecord
Gets a reference to the parent record this element belongs to.
Declaration
public GridRecord ParentRecord { get; }
Property Value
| Type |
|---|
| GridRecord |
ParentTable
Gets or sets a reference to the parent table this section belongs to.
Declaration
public GridTable ParentTable { get; set; }
Property Value
| Type |
|---|
| GridTable |
ParentTableDescriptor
Gets the table descriptor this element belongs to.
Declaration
public GridTableDescriptor ParentTableDescriptor { get; }
Property Value
| Type |
|---|
| GridTableDescriptor |
ReadOnlyAppearance
If this element is modified, the Appearance returns this object's Appearance; otherwise it returns a GridTableCellAppearance of the first parent element with appearance in the hierarchy.
Declaration
public GridTableCellAppearance ReadOnlyAppearance { get; }
Property Value
| Type |
|---|
| GridTableCellAppearance |
SummaryRows
The collection of GridSummaryRow elements that are contained in this section.
Declaration
public GridSummaryRowCollection SummaryRows { get; }
Property Value
| Type |
|---|
| GridSummaryRowCollection |
Methods
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | disposing |
Overrides
EnsureInitialized(Object, Boolean)
Ensures this object, nested objects and parent elements reflect any changes made to the engine or table descriptor.
Declaration
public override bool EnsureInitialized(object sender, bool notifyParent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The object that triggered the call. |
| System.Boolean | notifyParent | Specifies if the parent elements EnsureInitialized(Object) should also be called. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if they reflect the changes. |
Overrides
GetBaseAppearance()
Returns a GridTableCellAppearance of the first parent element with appearance in the hierarchy.
Declaration
public GridTableCellAppearance GetBaseAppearance()
Returns
| Type | Description |
|---|---|
| GridTableCellAppearance |
GetCounter()
Gets the ITreeTableCounter.
Declaration
public override ITreeTableCounter GetCounter()
Returns
| Type | Description |
|---|---|
| ITreeTableCounter | returns the counter for the current element. |
Overrides
InvalidateCounterTopDown(Boolean)
Walks down to the child branches and resets the counter.
Declaration
public override void InvalidateCounterTopDown(bool notifyCounterSource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Boolean | notifyCounterSource | If true, notifies the counter source. |
Overrides
IsChildVisible(Element)
Indicates if the specified element is the direct child of this element and if it should be made visible.
Declaration
public override bool IsChildVisible(Element el)
Parameters
| Type | Name | Description |
|---|---|---|
| Element | el | The specified element. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if it is a child and is visible. |
Overrides
OnEnsureInitialized(Object)
This overridden OnEnsureInitialized(Object) lets the elements implement element-specific logic to ensure object is up to data.
Declaration
protected override bool OnEnsureInitialized(object sender)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | sender | The object that triggered the OnEnsureInitialized(Object) call. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if changes were detected and the object was updated; False otherwise. |
Overrides
ResetAppearance()
Discards any changes for the Appearance object.
Declaration
public void ResetAppearance()
ShouldCreateChildElementTreeTable()
Indicates if child elementTreeTable to be created
Declaration
protected override bool ShouldCreateChildElementTreeTable()
Returns
| Type | Description |
|---|---|
| System.Boolean | returns Boolean value true |
Overrides
ShouldSerializeAppearance()
Determines whether Appearance has been modified and contents should be serialized at design-time.
Declaration
public bool ShouldSerializeAppearance()
Returns
| Type | Description |
|---|---|
| System.Boolean | True if contents were changed; False otherwise. |
ToString()
Returns a string holding the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String | String representation of the current object. |
Overrides
Explicit Interface Implementations
IGridTableCellAppearanceSource.GetAppearance()
Declaration
GridTableCellAppearance IGridTableCellAppearanceSource.GetAppearance()
Returns
| Type |
|---|
| GridTableCellAppearance |
IGridTableCellAppearanceSource.RaiseAppearanceChanged(GridTableCellStyleInfoChangedEventArgs)
Declaration
void IGridTableCellAppearanceSource.RaiseAppearanceChanged(GridTableCellStyleInfoChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableCellStyleInfoChangedEventArgs | e |
IGridTableCellAppearanceSource.RaiseAppearanceChanging(GridTableCellStyleInfoChangedEventArgs)
Declaration
void IGridTableCellAppearanceSource.RaiseAppearanceChanging(GridTableCellStyleInfoChangedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| GridTableCellStyleInfoChangedEventArgs | e |