Xceed Toolkit Plus for WPF v4.6 Documentation
NamesMatch Method


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridGroupDescription Class : NamesMatch Method
An object representing the name of the group to verify.
An object representing the name of the item to verify.
Returns a value indicating whether the group name and the item name match, which means that the item belongs to the group.
Syntax
'Declaration
 
Public Overrides NotOverridable Function NamesMatch( _
   ByVal groupName As Object, _
   ByVal itemName As Object _
) As Boolean
'Usage
 
Dim instance As DataGridGroupDescription
Dim groupName As Object
Dim itemName As Object
Dim value As Boolean
 
value = instance.NamesMatch(groupName, itemName)
public override bool NamesMatch( 
   object groupName,
   object itemName
)

Parameters

groupName
An object representing the name of the group to verify.
itemName
An object representing the name of the item to verify.

Return Value

true if the names match—indicating that the item belongs to the group; false otherwise.
Remarks
The DataGridCollectionView has been optimized to make use of DataGridGroupDescriptions to group the items in the underlying collection through a Hashtable rather than through the NamesMatch method. For this reason, the NamesMatch method has been sealed to prevent users from implementing custom name-matching criteria, which would be ignored by the DataGridCollectionView.
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

DataGridGroupDescription Class
DataGridGroupDescription Members
Base Implementation in NamesMatch