Xceed DataGrid for Silverlight Documentation
GetPathFromItem Method (DataGridControl)
Example 


A object representing the item whose path is to be retrieved.
Retrieves the path for the specified item.
Syntax
'Declaration
 
Public Function GetPathFromItem( _
   ByVal item As Object _
) As DataGridPath
'Usage
 
Dim instance As DataGridControl
Dim item As Object
Dim value As DataGridPath
 
value = instance.GetPathFromItem(item)
public DataGridPath GetPathFromItem( 
   object item
)

Parameters

item
A object representing the item whose path is to be retrieved.

Return Value

A DataGridPath representing the path of the item.
Example
Dim currentItem As Object = sldgDataGridControl.CurrentItem
 
Dim currentPath As DataGridPath = sldgDataGridControl.GetPathFromItem( currentItem )
sldgDataGridControl.ToggleGroupExpansion( currentPath.ParentPath )
object currentItem = sldgDataGridControl.CurrentItem;
 
DataGridPath currentPath = sldgDataGridControl.GetPathFromItem( currentItem );
sldgDataGridControl.ToggleGroupExpansion( currentPath.ParentPath );
Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridControl Class
DataGridControl Members

Additional Information

Paths and Containers

Send Feedback