Version

NameSource Property

Determines what is returned from the CellAutomationPeer's GetNameCore method.
Syntax
'Declaration
 
Public Shared Property NameSource As CellAutomationPeerNameSource
public static CellAutomationPeerNameSource NameSource {get; set;}
Remarks

This property defaults to 'CellValue' which will convert the associated cell's value to text and return it. Setting this property to 'DataItemAndFieldIndex' will cause the GetNameCore method to load a string resource named 'CellAutomationPeerName' whose default EN-US string is 'Item: {0}, Field Index: {1}' where {0} is the DataItem of the associated DataRecord and {1} is the index of the associated Field.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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