Class DataGridDynamicPropertiesProvider
Represents a class that implements DynamicPropertiesProvider to get or set a value on the underlying dynamic data object which is used by CollectionViewAdv.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Data
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class DataGridDynamicPropertiesProvider : DynamicPropertiesProvider, IPropertyAccessProvider, IDisposable
Constructors
DataGridDynamicPropertiesProvider(ICollectionViewAdv, SfDataGrid)
Initializes a new instance of the DataGridDynamicPropertiesProvider class.
Declaration
public DataGridDynamicPropertiesProvider(ICollectionViewAdv view, SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
ICollectionViewAdv | view | The corresponding view. |
SfDataGrid | dataGrid | The dataGrid. |
Methods
Dispose(Boolean)
Releases all the resources used by the
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, Object)
Overridden to gets the formatted value for the given record and column.
Declaration
public override object GetFormattedValue(object record, object column)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The corresponding record to get formatted value. |
System.Object | column | The corresponding column to get formatted value. |
Returns
Type | Description |
---|---|
System.Object | Returns the formatted value based on the given record and column. |
Overrides
GetFormattedValue(Object, String)
Overridden to gets the formatted value of particular property for the specified record..
Declaration
public override object GetFormattedValue(object record, string propName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The corresponding record to get formatted value. |
System.String | propName | The corresponding property name to get formatted value. |
Returns
Type | Description |
---|---|
System.Object | Returns the formatted value of particular property based on the specified record and property name. |
Overrides
GetFormattedValue(Object, String, out Object)
Overridden to gets the formatted value of particular property for the specified record..
Declaration
public override object GetFormattedValue(object record, string propName, out object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The corresponding record to get formatted value. |
System.String | propName | The corresponding property name to get formatted value. |
System.Object | value | The corresponding formatted value. |
Returns
Type | Description |
---|---|
System.Object | Returns the formatted value of particular property based on the specified record and property name. |
Overrides
GetValue(Object, String)
Gets the property value that is reflected from the specified record.
Declaration
public override object GetValue(object record, string propName)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The corresponding record to get the property value. |
System.String | propName | The corresponding property name to get the value. |
Returns
Type | Description |
---|---|
System.Object | Returns the property value for the specified record and property name. |
Overrides
SetValue(Object, String, Object)
Sets the value to particular property in a record.
Declaration
public override bool SetValue(object record, string propName, object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | record | The corresponding record to set the value. |
System.String | propName | The corresponding property name to set the value. |
System.Object | value | The corresponding value to set particular property. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the value is set the particular property in the specified record. |