menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AddNewRecordSection - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AddNewRecordSection

    Defines a class that adds a new record section to the table.

    Inheritance
    System.Object
    Element
    Section
    DetailsSection
    RecordsDetails
    AddNewRecordSection
    GridAddNewRecordSection
    Implements
    System.IDisposable
    ITreeTableCounterSource
    ITreeTableSummaryArraySource
    Inherited Members
    DetailsSection.GetCustomCount()
    DetailsSection.GetElementCount()
    DetailsSection.GetFilteredRecordCount()
    DetailsSection.GetRecordCount()
    DetailsSection.GetVisibleCount()
    DetailsSection.GetVisibleCustomCount()
    DetailsSection.GetYAmountCount()
    DetailsSection.HasRecords
    DetailsSection.InvalidateCounter()
    DetailsSection.InvalidateCounterTopDown(Boolean)
    DetailsSection.InvalidateSummariesTopDown()
    DetailsSection.InvalidateSummary()
    DetailsSection.ParentTable
    Element.ChildTableGroupLevel
    Element.Dispose()
    Element.Disposed
    Element.Disposing
    Element.Engine
    Element.EngineTable
    Element.EnsureInitialized(Object)
    Element.EnsureInitialized(Object, Boolean)
    Element.GetCaptionSection()
    Element.GetCaptionSection(Element)
    Element.GetChildCount()
    Element.GetColumnHeaderSection()
    Element.GetColumnHeaderSection(Element)
    Element.GetCustomPosition()
    Element.GetData()
    Element.GetFilterBar()
    Element.GetFilterBar(Element)
    Element.GetRecord()
    Element.GetRecord(Element)
    Element.GetSummaries(Table)
    Element.GetSummaries(Table, Boolean)
    Element.GetVisibleCustomPosition()
    Element.GetVisibleInHierarchy()
    Element.GetVisibleInParent()
    Element.GroupLevel
    Element.Id
    Element.InDisposed
    Element.Info
    Element.InvalidateCounterBottomUp()
    Element.IsCaption()
    Element.IsCaption(Element)
    Element.IsChildVisible(Element)
    Element.IsColumnHeader()
    Element.IsColumnHeader(Element)
    Element.IsDisposed
    Element.IsFilterBar()
    Element.IsFilterBar(Element)
    Element.IsRecord()
    Element.IsRecord(Element)
    Element.ITreeTableSummaryArraySource.GetSummaries(ITreeTableEmptySummaryArraySource, Boolean)
    Element.Kind
    Element.OnBeginEditCalled()
    Element.OnBeginEditComplete(Boolean)
    Element.OnCancelEditCalled()
    Element.OnCancelEditComplete(Boolean)
    Element.OnDisposed(EventArgs)
    Element.OnElementTreeInvalidateCounterBottomUp()
    Element.OnEndEditCalled()
    Element.OnEndEditComplete(Boolean)
    Element.OnEnterRecordCalled()
    Element.OnEnterRecordComplete(Boolean)
    Element.OnLeaveRecordCalled()
    Element.OnLeaveRecordComplete(Boolean)
    Element.ParentChildTable
    Element.ParentDisplayElement
    Element.ParentGroup
    Element.ParentRecord
    Element.ParentSection
    Element.ParentTableDescriptor
    Element.Reserved1
    Element.Reserved10
    Element.Reserved11
    Element.Reserved16a
    Element.Reserved16b
    Element.Reserved16c
    Element.Reserved2
    Element.Reserved3
    Element.Reserved4
    Element.Reserved5
    Element.Reserved6
    Element.Reserved7
    Element.Reserved8
    Element.Reserved9
    Element.SupportsId()
    Element.TableLevel
    RecordsDetails.CompareSortedColumns()
    RecordsDetails.Dispose(Boolean)
    RecordsDetails.FilteredRecords
    RecordsDetails.OnEnsureInitialized(Object)
    RecordsDetails.Records
    RecordsDetails.UpdateSortedColumns()
    Section.GetCounter()
    Section.InvalidateSummariesBottomUp()
    Section.ParentElement
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Grouping
    Assembly: Syncfusion.Grouping.Base.dll
    Syntax
    public class AddNewRecordSection : RecordsDetails, IDisposable, IDisposedEvent, IIsDisposedProperty, ITreeTableCounterSource, ITreeTableSummaryArraySource, IContainerElement, IElementTreeTableSource, IElement
    Remarks

    This is the section within a group which provides the AddNewRecord that is shown above the table records and / or below the records for each group and implements logic to add new records. See the AddNewRecord class for more information.

    The AddNewRecordSection is a RecordsDetails section and thus also a container element. Normally, a RecordsDetails section has a collection of one or multiple records but with a AddNewRecordSection you only have exactly one child record, the AddNewRecord.

    If AddNewRecord(s) should be displayed at end of each group, then AddNewRecordSection(s) are created when the grouping for a table is initialized. The grouping engine loops through all sorted records and categorizes them. For each new group the virtual TableDescriptor.CreateGroup factory method is called. The TableDescriptor.CreateGroup method instantiates an AddNewRecordSection by calling the virtual TableDescriptor.CreateAddNewRecordSection factory method.

    One AddNewRecord is displayed at the top of the table below the column headers. It belongs to the AddNewRecordSection of the TopLevelGroup of a table. The TopLevelGroup is created with the virtual TableDescriptor.CreateGroup factory method. The TableDescriptor.CreateGroup method instantiates an AddNewRecordSection by calling the virtual TableDescriptor.CreateAddNewRecordSection factory method.

    Because the AddNewRecordSection is a container element and not a display element, it will not be an item returned by the Table.DisplayElements and Table.GroupedElements collection. Instead, AddNewRecordSection can be accessed only through the Group.Sections collection of its parent Group.

    See also:

    TableDescriptor.CreateGroup, TableDescriptor.CreateAddNewRecordSection, Table.TopLevelGroup, AddNewRecord, IContainerElement, Group.Sections.

    Constructors

    AddNewRecordSection(Group)

    Initializes a new instance of the AddNewRecordSection class in the specified group.

    Declaration
    public AddNewRecordSection(Group parent)
    Parameters
    Type Name Description
    Group parent

    The group this section is created in.

    Properties

    AddNewRecord

    Gets the value of reference to AddNewRecord.

    Declaration
    public AddNewRecord AddNewRecord { get; }
    Property Value
    Type
    AddNewRecord

    IsBeforeDetails

    Gets or sets a value indicating whether this is the AddNewRecord that is shown above the DetailsSection or below.

    Declaration
    public bool IsBeforeDetails { get; set; }
    Property Value
    Type
    System.Boolean

    Methods

    ToString()

    Returns a string that represents the current object.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    A string holding the current object.

    Overrides
    DetailsSection.ToString()

    Implements

    System.IDisposable
    ITreeTableCounterSource
    ITreeTableSummaryArraySource
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved