WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridItemPropertiesProvider

    Show / Hide Table of Contents

    Class GridItemPropertiesProvider

    Represents a class that implements IPropertyAccessProvider to Get / Set value on the underlying object which is used by CollectionViewAdv.

    Inheritance
    System.Object
    ItemPropertiesProvider
    GridItemPropertiesProvider
    Implements
    IPropertyAccessProvider
    System.IDisposable
    Inherited Members
    ItemPropertiesProvider.view
    ItemPropertiesProvider.GetDataTableValue(Object, String)
    ItemPropertiesProvider.Dispose()
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.UI.Xaml.Grid
    Assembly: Syncfusion.SfGrid.WPF.dll
    Syntax
    public class GridItemPropertiesProvider : ItemPropertiesProvider, IPropertyAccessProvider, IDisposable

    Constructors

    GridItemPropertiesProvider(ICollectionViewAdv, SfDataGrid)

    Initializes a new instance of GridItemPropertiesProvider class.

    Declaration
    public GridItemPropertiesProvider(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 GridItemPropertiesProvider 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
    ItemPropertiesProvider.Dispose(Boolean)

    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
    ItemPropertiesProvider.GetDisplayValue(Object, String, Boolean)

    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
    ItemPropertiesProvider.GetFormattedValue(Object, String)

    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
    ItemPropertiesProvider.GetValue(Object, String)

    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
    ItemPropertiesProvider.GetValue(Object, String, Boolean)

    OnBeginReflect()

    Initialize the fields.

    Declaration
    public override void OnBeginReflect()
    Overrides
    ItemPropertiesProvider.OnBeginReflect()

    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
    ItemPropertiesProvider.SetValue(Object, String, Object)

    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.

    Overrides
    ItemPropertiesProvider.SetValue(Object, String, Object, Boolean)

    Implements

    IPropertyAccessProvider
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved