WinForms

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

    Show / Hide Table of Contents

    Class ItemPropertiesProvider

    Implements IPropertyAccessProvider to get / set value on the underlying object which is used by CollectionViewAdv.

    Inheritance
    System.Object
    ItemPropertiesProvider
    DynamicPropertiesProvider
    DataGridItemsPropertiesProvider
    Implements
    IPropertyAccessProvider
    System.IDisposable
    Inherited Members
    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.Data
    Assembly: Syncfusion.Data.WinForms.dll
    Syntax
    public class ItemPropertiesProvider : IPropertyAccessProvider, IDisposable

    Constructors

    ItemPropertiesProvider()

    Initializes a new instance of the ItemPropertiesProvider class.

    Declaration
    protected ItemPropertiesProvider()

    ItemPropertiesProvider(ICollectionViewAdv)

    Initializes a new instance of the ItemPropertiesProvider class.

    Declaration
    public ItemPropertiesProvider(ICollectionViewAdv view)
    Parameters
    Type Name Description
    ICollectionViewAdv view

    The collection view of the SfDataGrid.

    Fields

    view

    Gets the collection view of the SfDataGrid.

    Declaration
    protected ICollectionViewAdv view
    Field Value
    Type Description
    ICollectionViewAdv

    Methods

    Dispose()

    Disposes all the resources used by the ItemPropertiesProvider class.

    Declaration
    public void Dispose()

    Dispose(Boolean)

    Disposes the unmanaged and optionally releases managed resources used by the ItemPropertiesProvider class.

    Declaration
    protected virtual void Dispose(bool isDisposing)
    Parameters
    Type Name Description
    System.Boolean isDisposing

    Indicates whether the call is from Dispose method or from a finalizer.

    GetDataTableValue(Object, String)

    Gets the data table value for the given record and the property name.

    Declaration
    public static object GetDataTableValue(object record, string propertyName)
    Parameters
    Type Name Description
    System.Object record

    The record for which the data table value is to be obtained.

    System.String propertyName

    The name of the property.

    Returns
    Type Description
    System.Object

    The data table value for the given record and the property name.

    GetFormattedValue(Object, String)

    Gets the Formatted value for the given record and the property name.

    Declaration
    public virtual object GetFormattedValue(object record, string propName)
    Parameters
    Type Name Description
    System.Object record

    The record for which the formatted 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.

    GetFormattedValue(Object, String, out Object)

    Declaration
    public virtual object GetFormattedValue(object record, string propName, out object value)
    Parameters
    Type Name Description
    System.Object record
    System.String propName
    System.Object value
    Returns
    Type Description
    System.Object

    GetValue(Object, String)

    Gets the value for the given record and property.

    Declaration
    public virtual object GetValue(object record, string property)
    Parameters
    Type Name Description
    System.Object record

    The record for which the value is to be obtained.

    System.String property

    The name of the property.

    Returns
    Type Description
    System.Object

    The value for the given record and property.

    SetValue(Object, String, Object)

    Sets the value for the given record and property name.

    Declaration
    public virtual 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.

    Implements

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