ComponentOne DataGrid for WPF and Silverlight
C1.WPF.DataGrid Namespace / C1DataGrid Class / GetCellFromFrameworkElement Method
The element inside the cell.

In This Topic
    GetCellFromFrameworkElement Method
    In This Topic
    Gets the corresponding cell from a System.Windows.FrameworkElement contained inside the cell.
    Syntax
    'Declaration
     
    
    Public Function GetCellFromFrameworkElement( _
       ByVal element As FrameworkElement _
    ) As DataGridCell
    public DataGridCell GetCellFromFrameworkElement( 
       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