Xceed Toolkit Plus for WPF v4.6 Documentation
DataGridItemProperty Class
Members  Example 


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace : DataGridItemProperty Class
Represents the characteristics of a property for an item in a DataGridCollectionView.
Syntax
'Declaration
 
<DebuggerDisplayAttribute("Name = {Name}")>
Public Class DataGridItemProperty 
   Inherits DataGridItemPropertyBase
'Usage
 
Dim instance As DataGridItemProperty
[DebuggerDisplay("Name = {Name}")]
public class DataGridItemProperty : DataGridItemPropertyBase 
Remarks

A DataGridItemProperty will be created for each property in the underlying data source and can be retrieved through the ItemProperties property of the DataGridCollectionViewDataGridCollectionViewSource (in XAML), or DataGridDetailDescription classes.

Example
The following example demonstrates how to provide, through a style, a new ControlTemplate for DataRow objects. A new ControlTemplate has also been provided for the grid in order to change its ScrollViewer to a WrapPanel. The columns that are contained in the grid will be limited to those specified in the ItemProperties of the DataGridCollectionViewSource. This example assumes that the grid is bound to the Employees table of the Northwind database.
Inheritance Hierarchy

System.Object
   Xceed.Wpf.DataGrid.DataGridItemPropertyBase
      Xceed.Wpf.DataGrid.DataGridItemProperty

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

DataGridItemProperty Members
Xceed.Wpf.DataGrid Namespace