Class DataGridItemsPropertiesProvider
Represents a class that implements IPropertyAccessProvider to get or set value on the underlying object which is used by CollectionViewAdv.
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Data
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class DataGridItemsPropertiesProvider : ItemPropertiesProvider, IPropertyAccessProvider, IDisposable
Constructors
DataGridItemsPropertiesProvider(ICollectionViewAdv, SfDataGrid)
Initializes a new instance of the DataGridItemsPropertiesProvider class.
Declaration
public DataGridItemsPropertiesProvider(ICollectionViewAdv view, SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
ICollectionViewAdv | view | The ICollectionViewAdv of the data grid. |
SfDataGrid | dataGrid | The SfDataGrid. |
Methods
Dispose(Boolean)
Disposes all the resources used by the DataGridItemsPropertiesProvider class.
Declaration
protected override void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates the call is from Dispose method . |
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 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)
Overridden to 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)
Overridden to 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 value to be set for particular property. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the value is set for the particular property in the specified record. Otherwise return false |