Xceed DataGrid for WPF v7.2 Documentation
ItemProperties Property (DataGridItemPropertyBase)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridItemPropertyBase Class : ItemProperties Property
Gets a collection of DataGridItemProperty objects that belong to a given DataGridItemProperty.
Syntax
'Declaration
 
Public ReadOnly Property ItemProperties As DataGridItemPropertyCollection
'Usage
 
Dim instance As DataGridItemPropertyBase
Dim value As DataGridItemPropertyCollection
 
value = instance.ItemProperties
public DataGridItemPropertyCollection ItemProperties {get;}

Property Value

A DataGridItemPropertyCollection containing the DataGridItemProperty objects that determine the characteristics of the items contained in the DataGridItemProperty.
Example
The following example demonstrates how add the property "Person.FirstName" in the DataGridCollectionView.
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"
     xmlns:s="clr-namespace:System;assembly=mscorlib">
  <Grid.Resources>
     <xcdg:DataGridCollectionViewSource x:Key="cvs_clients"
                                        Source="{Binding Source={x:Static Application.Current}, Path=Clients}">
        <xcdg:DataGridCollectionViewSource.ItemProperties>

         <xcdg:DataGridItemProperty Name="Person">
            <xcdg:DataGridItemProperty.ItemProperties>
               <xcdg:DataGridItemProperty Name="FirstName" />
            </xcdg:DataGridItemProperty.ItemProperties>
         </xcdg:DataGridItemProperty>

        </xcdg:DataGridCollectionViewSource.ItemProperties>
     </xcdg:DataGridCollectionViewSource>
  </Grid.Resources>

</Grid>
Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataGridItemPropertyBase Class
DataGridItemPropertyBase Members