WinForms

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

    Show / Hide Table of Contents

    Class GridRecordWithValueCache

    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
    GridRecord
    GridRecordWithValueCache
    Implements
    System.IDisposable
    ITreeTableCounterSource
    ITreeTableSummaryArraySource
    System.IComparable
    System.ICloneable
    IGridTableCellAppearanceSource
    IGridTableCellStyleChanged
    Inherited Members
    GridRecord.Dispose(Boolean)
    GridRecord.GetBaseAppearance()
    GridRecord.ShouldSerializeAppearance()
    GridRecord.ResetAppearance()
    GridRecord.IGridTableCellAppearanceSource.GetAppearance()
    GridRecord.IGridTableCellAppearanceSource.RaiseAppearanceChanged(GridTableCellStyleInfoChangedEventArgs)
    GridRecord.IGridTableCellAppearanceSource.RaiseAppearanceChanging(GridTableCellStyleInfoChangedEventArgs)
    GridRecord.IGridTableCellStyleChanged.RaiseTableCellStyleChanged(GridTableCellStyleInfoEventArgs)
    GridRecord.GetValue(SortColumnDescriptor)
    GridRecord.ShouldShowRecordPreviewRows()
    GridRecord.ShouldShowRecordRows()
    GridRecord.ParentTableDescriptor
    GridRecord.Engine
    GridRecord.EngineTable
    GridRecord.ParentRecord
    GridRecord.ParentChildTable
    GridRecord.ParentTable
    GridRecord.ReadOnlyAppearance
    GridRecord.Appearance
    GridRecord.IsCollapsible
    Record.SupportsId()
    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.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.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.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.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.ParentElement
    Element.ParentDisplayElement
    Element.ParentGroup
    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.Windows.Forms.Grid.Grouping
    Assembly: Syncfusion.Grid.Grouping.Windows.dll
    Syntax
    public class GridRecordWithValueCache : GridRecord, IDisposable, IDisposedEvent, IIsDisposedProperty, ITreeTableCounterSource, ITreeTableSummaryArraySource, IContainerElement, IElementTreeTableSource, IElement, IComparable, ICloneable, IGridTableCellAppearanceSource, IGridTableCellStyleChanged

    Constructors

    GridRecordWithValueCache(Table)

    Initializes a new instance of the GridRecordWithValueCache class.

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

    The 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.

    Declaration
    public override ChangedFieldInfoCollection CompareAndUpdateValues()
    Returns
    Type Description
    ChangedFieldInfoCollection

    An ArrayList with ChangedFieldInfo objects.

    Overrides
    Record.CompareAndUpdateValues()

    EnsureValues()

    Ensures that record values are cached.

    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

    The index of the field whose value is required.

    Returns
    Type Description
    System.Object

    Old value of the record.

    Overrides
    Record.GetOldValue(Int32)

    GetValue(FieldDescriptor)

    Returns the value for a record.

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

    The field descriptor.

    Returns
    Type Description
    System.Object

    Record value.

    Overrides
    GridRecord.GetValue(FieldDescriptor)

    ResetValues()

    Resets the record 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
    IGridTableCellAppearanceSource
    IGridTableCellStyleChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved