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.
Implements
Inherited Members
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
EnsureValues()
Ensures that record values are cached.
Declaration
public override void EnsureValues()
Overrides
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
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
ResetValues()
Resets the record values.
Declaration
public override void ResetValues()
Overrides
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. |