Xceed DataGrid for WPF v7.2 Documentation
Initialize Method (DataGridItemPropertyBase)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridItemPropertyBase Class : Initialize Method
A string representing the name of a property in a DataGridCollectionView.
A string representing the title of the item property.
The property's data type.
true if the DataGridItemProperty is readonly; false otherwise.
true if the corresponding cell can be edited when a new item is being inserted, regardless of the value of the IsReadOnly property, false if the value of the IsReadOnly property is respected.
true if the DataGridItemProperty can generate a column if need be; false otherwise.
true if the item property represents a sub relationship; false otherwise.

Initializes a new instance of the DataGridItemProperty class specifying the name and title of the property, its value path, indicating whether it is read only, if the corresponding cell can be edited when a new item is being inserted, and if it represents a sub relationship.

Syntax
'Declaration
 
Protected Sub Initialize( _

   ByVal name As String, _

   ByVal title As String, _

   ByVal dataType As Type, _

   ByVal isReadOnly As Nullable(Of Boolean), _

   ByVal overrideReadOnlyForInsertion As Nullable(Of Boolean), _

   ByVal isDisplayable As Nullable(Of Boolean), _

   ByVal isASubRelationship As Nullable(Of Boolean) _

) 
'Usage
 
Dim instance As DataGridItemPropertyBase

Dim name As String

Dim title As String

Dim dataType As Type

Dim isReadOnly As Nullable(Of Boolean)

Dim overrideReadOnlyForInsertion As Nullable(Of Boolean)

Dim isDisplayable As Nullable(Of Boolean)

Dim isASubRelationship As Nullable(Of Boolean)

 

instance.Initialize(name, title, dataType, isReadOnly, overrideReadOnlyForInsertion, isDisplayable, isASubRelationship)

Parameters

name
A string representing the name of a property in a DataGridCollectionView.
title
A string representing the title of the item property.
dataType
The property's data type.
isReadOnly
true if the DataGridItemProperty is readonly; false otherwise.
overrideReadOnlyForInsertion
true if the corresponding cell can be edited when a new item is being inserted, regardless of the value of the IsReadOnly property, false if the value of the IsReadOnly property is respected.
isDisplayable
true if the DataGridItemProperty can generate a column if need be; false otherwise.
isASubRelationship
true if the item property represents a sub relationship; false otherwise.
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