Class DynamicPropertiesProvider
Class that serves as the provider for the dynamic properties, which implements methods for obtaining the values and setting the values for the various properties.
Inheritance
Inherited Members
Namespace: Syncfusion.Data
Assembly: Syncfusion.Data.WinForms.dll
Syntax
public class DynamicPropertiesProvider : ItemPropertiesProvider, IPropertyAccessProvider, IDisposable
Constructors
DynamicPropertiesProvider(ICollectionViewAdv)
Initializes a new instance of the DynamicPropertiesProvider class.
Declaration
public DynamicPropertiesProvider(ICollectionViewAdv view)
Parameters
Type | Name | Description |
---|---|---|
ICollectionViewAdv | view | The collection view of the SfDataGrid. |
Methods
Dispose(Boolean)
Disposes the unmanaged and optionally disposes managed resources used by the DynamicPropertiesProvider class.
Declaration
protected override void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
Overrides
GetFormattedValue(Object, String)
Gets the formatted value for the given record and the property name.
Declaration
public override object GetFormattedValue(object record, string propName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The record for which the value is to be obtained. |
System.String | propName | The name of the property. |
Returns
Type | Description |
---|---|
System.Object | The formatted value based on the given property and record. |
Overrides
GetFormattedValue(Object, String, out Object)
Declaration
public override object GetFormattedValue(object record, string propName, out object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | |
System.String | propName | |
System.Object | value |
Returns
Type |
---|
System.Object |
Overrides
GetValue(Object, String)
Gets the value for the given record and property.
Declaration
public override object GetValue(object record, string propName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The record for which the value is to be obtained. |
System.String | propName | The name of the property. |
Returns
Type | Description |
---|---|
System.Object | The value for the given record and property. |
Overrides
SetValue(Object, String, Object)
Sets the value for the given record and property name.
Declaration
public override bool SetValue(object record, string propName, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The record for which the value is to be set. |
System.String | propName | The name of the property. |
System.Object | value | The value to be set. |
Returns
Type | Description |
---|---|
System.Boolean | A boolean value indicating whether the value is set. |