Class GridXElementAttributesProvider
Represents a class that implements Syncfusion.UI.Xaml.Data.XElementAttributesProvider to Get / Set value on the underlying object which is used by CollectionViewAdv.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.DataGrid
Assembly: Syncfusion.Grid.WinUI.dll
Syntax
public class GridXElementAttributesProvider : XElementAttributesProvider, IPropertyAccessProvider, IDisposable
Constructors
GridXElementAttributesProvider(ICollectionViewAdv, SfDataGrid)
Initializes a new instance of GridXElementAttributesProvider class.
Declaration
public GridXElementAttributesProvider(ICollectionViewAdv view, SfDataGrid dataGrid)
Parameters
Type | Name | Description |
---|---|---|
ICollectionViewAdv | view | The corresponding view. |
SfDataGrid | dataGrid | The SfDataGrid. |
Methods
Dispose(Boolean)
Releases all the resources used by the GridXElementAttributesProvider 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
GetDisplayValue(Object, String, Boolean)
Gets the Display value of particular property for the specified record and property name.
Declaration
public override object GetDisplayValue(object record, string propName, bool canusebindingreflection)
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.Boolean | canusebindingreflection | If true then use Binding reflection to get the display value |
Returns
Type | Description |
---|---|
System.Object | Returns the Display value of particular property based on the specified record and property name. |
Overrides
GetFormattedValue(Object, String)
Gets the formatted value of particular property for the specified record and property name.
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
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
GetValue(Object, String, Boolean)
Gets the property value from the specified record and property name.
Declaration
public override object GetValue(object record, string propName, bool useBindingValue)
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. |
System.Boolean | useBindingValue | Specifies whether the property value is reflected either from record or ValueBinding. |
Returns
Type | Description |
---|---|
System.Object | Returns the property value for the specified record and property name. |
Overrides
OnBeginReflect()
Initialize the fields.
Declaration
public override void OnBeginReflect()
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. |
Overrides
SetValue(Object, String, Object, Boolean)
Sets the value to particular property in a record.
Declaration
public override bool SetValue(object record, string propName, object value, bool useBindingValue)
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. |
System.Boolean | useBindingValue | Specifies the whether the property value is set to record or ValueBinding. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if the value is set the particular property in the specified record. |