WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RecordWithValueCache

    Show / Hide Table of Contents

    Class RecordWithValueCache

    Implements the record that shadows values in table and can gives hints which values were changed in ListChanged event. The new GetOldValue method also gives access to the previous value before a change and can be used for calculating the difference between two values.

    Inheritance
    System.Object
    Element
    Record
    RecordWithValueCache
    Implements
    System.IDisposable
    ITreeTableCounterSource
    ITreeTableSummaryArraySource
    System.IComparable
    System.ICloneable
    Inherited Members
    Record.SupportsId()
    Record.Dispose(Boolean)
    Record.GetDisplayElementOffsetOfFirstNestedTable()
    Record.GetExpandedVisibleCount()
    Record.GetCollapsedVisibleCount()
    Record.GetNestedTablesVisibleCount()
    Record.GetRecordRowsVisibleCount()
    Record.GetRecordPreviewRowsVisibleCount()
    Record.Delete()
    Record.SetCurrent()
    Record.SetCurrent(String)
    Record.BeginEdit()
    Record.EndEdit()
    Record.EndEdit(Record)
    Record.CancelEdit()
    Record.SetValue(FieldDescriptor, Object)
    Record.GetValue(SortColumnDescriptor)
    Record.SetValue(String, Object)
    Record.GetValue(String)
    Record.InvalidateSummariesBottomUp()
    Record.GetSourceIndex()
    Record.SetSourceIndex(Int32, Int32, Object)
    Record.GetUniformChildListSourceIndex()
    Record.IsSelected()
    Record.SetSelected(Boolean)
    Record.SetSelectedRecursive(Boolean)
    Record.GetData()
    Record.UpdateSortInfo(Boolean, SortColumnDescriptor[], PropertyDescriptor[])
    Record.UpdatePrimaryKeys(Boolean, SortColumnDescriptor[], PropertyDescriptor[])
    Record.GetSummaries(Table, Boolean)
    Record.GetNextRecord()
    Record.GetPreviousRecord()
    Record.DetachFromGroup()
    Record.AttachToGroup()
    Record.ReinsertRecord()
    Record.MeetsFilterCriteria()
    Record.InvalidateCounter()
    Record.OnElementTreeInvalidateCounterBottomUp()
    Record.GetVisibleCount()
    Record.GetCounter()
    Record.GetYAmountCount()
    Record.GetCustomCount()
    Record.GetVisibleCustomCount()
    Record.IsChildVisible(Element)
    Record.ShouldShowRecordPreviewRows()
    Record.ShouldShowRecordRows()
    Record.SetExpanded(Boolean, Boolean, Boolean)
    Record.GetFilteredRecordCount()
    Record.GetRecordCount()
    Record.InvalidateCounterTopDown(Boolean)
    Record.InvalidateCounterBottomUp()
    Record.OnEnsureInitialized(Object)
    Record.InvalidateSummariesTopDown()
    Record.InvalidateSummary()
    Record.FieldsToString()
    Record.ToString()
    Record.OnBeginEditCalled()
    Record.OnBeginEditComplete(Boolean)
    Record.OnEndEditCalled()
    Record.OnEndEditComplete(Boolean)
    Record.OnCancelEditCalled()
    Record.OnCancelEditComplete(Boolean)
    Record.OnLeaveRecordCalled()
    Record.OnLeaveRecordComplete(Boolean)
    Record.OnEnterRecordCalled()
    Record.OnEnterRecordComplete(Boolean)
    Record.GetRelatedRecord(RelationDescriptor)
    Record.GetRelatedRecord(RelationDescriptor, FieldDescriptor, Object)
    Record.GetRelatedChildTable(RelationDescriptor)
    Record.GetParentRecord(Element)
    Record.AdjustRecordRowCount()
    Record.GetElementCount()
    Record.CompareTo(Object)
    Record.Clone()
    Record.Id
    Record.Item[String]
    Record.Kind
    Record.RecordParts
    Record.IsCurrent
    Record.IsEditing
    Record.Parent
    Record.ParentDetails
    Record.SortKeys
    Record.PrimaryKeys
    Record.IsInitialized
    Record.IsCollapsible
    Record.IsExpanded
    Record.HasNestedTables
    Record.RecordRows
    Record.RecordPreviewRows
    Record.NestedTables
    Element.Dispose()
    Element.OnDisposed(EventArgs)
    Element.EnsureInitialized(Object)
    Element.EnsureInitialized(Object, Boolean)
    Element.GetSummaries(Table)
    Element.GetVisibleInParent()
    Element.GetVisibleInHierarchy()
    Element.GetChildCount()
    Element.GetCustomPosition()
    Element.GetVisibleCustomPosition()
    Element.ITreeTableSummaryArraySource.GetSummaries(ITreeTableEmptySummaryArraySource, Boolean)
    Element.IsCaption(Element)
    Element.IsRecord(Element)
    Element.IsColumnHeader(Element)
    Element.IsFilterBar(Element)
    Element.IsCaption()
    Element.IsRecord()
    Element.IsColumnHeader()
    Element.IsFilterBar()
    Element.GetCaptionSection(Element)
    Element.GetRecord(Element)
    Element.GetColumnHeaderSection(Element)
    Element.GetFilterBar(Element)
    Element.GetCaptionSection()
    Element.GetRecord()
    Element.GetColumnHeaderSection()
    Element.GetFilterBar()
    Element.Engine
    Element.EngineTable
    Element.ParentTable
    Element.TableLevel
    Element.Reserved1
    Element.Reserved2
    Element.Reserved3
    Element.Reserved4
    Element.Reserved5
    Element.Reserved6
    Element.Reserved7
    Element.Reserved8
    Element.Reserved9
    Element.Reserved10
    Element.Reserved11
    Element.Reserved16a
    Element.Reserved16b
    Element.Reserved16c
    Element.Info
    Element.Disposing
    Element.IsDisposed
    Element.InDisposed
    Element.ParentTableDescriptor
    Element.ParentElement
    Element.ParentDisplayElement
    Element.ParentGroup
    Element.ParentRecord
    Element.ParentChildTable
    Element.ParentSection
    Element.GroupLevel
    Element.ChildTableGroupLevel
    Element.Disposed
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Grouping
    Assembly: Syncfusion.Grouping.Base.dll
    Syntax
    public class RecordWithValueCache : Record, IDisposable, IDisposedEvent, IIsDisposedProperty, ITreeTableCounterSource, ITreeTableSummaryArraySource, IContainerElement, IElementTreeTableSource, IElement, IComparable, ICloneable

    Constructors

    RecordWithValueCache(Table)

    Initializes the new instance of the RecordWithValueCache class.

    Declaration
    public RecordWithValueCache(Table parentTable)
    Parameters
    Type Name Description
    Table parentTable

    Parent table.

    Methods

    CompareAndUpdateValues()

    Returns an ArrayList with ChangedFieldInfo objects and updates the values in the record with changes found in underlying datasource. Only fields with a PropertyDescriptor are updated, others (unbound, expression fields) are ignored. The method is implemented only in the RecordWithValueCache class.

    Declaration
    public override ChangedFieldInfoCollection CompareAndUpdateValues()
    Returns
    Type Description
    ChangedFieldInfoCollection

    The collection with detected changes.

    Overrides
    Record.CompareAndUpdateValues()

    EnsureValues()

    Ensures that record values are cached. The method is implemented only in the RecordWithValueCache class.

    Declaration
    public override void EnsureValues()
    Overrides
    Record.EnsureValues()

    GetOldValue(Int32)

    Returns the old value for a record.

    Declaration
    public override object GetOldValue(int fieldIndex)
    Parameters
    Type Name Description
    System.Int32 fieldIndex

    Field index.

    Returns
    Type Description
    System.Object

    Old value of the record.

    Overrides
    Record.GetOldValue(Int32)

    GetValue(FieldDescriptor)

    Gets the value from the underlying datasource.

    Declaration
    public override object GetValue(FieldDescriptor fieldDescriptor)
    Parameters
    Type Name Description
    FieldDescriptor fieldDescriptor

    The field to be retrieved.

    Returns
    Type Description
    System.Object

    Returns Value.

    Overrides
    Record.GetValue(FieldDescriptor)

    ResetValues()

    Resets cached values.

    Declaration
    public override void ResetValues()
    Overrides
    Record.ResetValues()

    UpdateValues(IEnumerable)

    Enumerates through values in the collection of ChangedFieldInfo objects and updates the old and new values in this record.

    Declaration
    public override void UpdateValues(IEnumerable changedFields)
    Parameters
    Type Name Description
    System.Collections.IEnumerable changedFields

    The changed fields.

    Overrides
    Record.UpdateValues(IEnumerable)

    Implements

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