ComponentOne DataGrid for WPF and Silverlight
GetCellFromFrameworkElement Method (C1DataGrid)

C1.WPF.DataGrid Namespace > C1DataGrid Class : GetCellFromFrameworkElement Method
The element inside the cell.
Gets the corresponding cell from a System.Windows.FrameworkElement contained inside the cell.
Syntax
'Declaration
 
Public Function GetCellFromFrameworkElement( _
   ByVal element As System.Windows.FrameworkElement _
) As DataGridCell
public DataGridCell GetCellFromFrameworkElement( 
   System.Windows.FrameworkElement element
)

Parameters

element
The element inside the cell.

Return Value

The cell that contains the System.Windows.FrameworkElement
Remarks
This methods walks the visual tree from the passed in element searching for a DataGridCellPresenter.
See Also

Reference

C1DataGrid Class
C1DataGrid Members