Xceed Toolkit Plus for WPF v4.6 Documentation
GetContainerFromItem Method (DataGridContext)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > DataGridContext Class : GetContainerFromItem Method
An item in the context whose container to retrieve.
Retrieves the container of the specified item.
Syntax
'Declaration
 
Public Function GetContainerFromItem( _
   ByVal item As Object _
) As DependencyObject
'Usage
 
Dim instance As DataGridContext
Dim item As Object
Dim value As DependencyObject
 
value = instance.GetContainerFromItem(item)
public DependencyObject GetContainerFromItem( 
   object item
)

Parameters

item
An item in the context whose container to retrieve.

Return Value

A DependencyObject representing the container of the specified item. Can be a null reference (Nothing in Visual Basic) if the item belongs to the context but does not have a container.
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

DataGridContext Class
DataGridContext Members