Editare

Partajați prin


DataGridColumn.GetCellContent Method

Definition

Gets the Content property value for a cell in the column.

Overloads

GetCellContent(Object)

Gets the Content property value for the cell at the intersection of this column and the row that represents the specified data item.

GetCellContent(DataGridRow)

Retrieves the Content property value for the cell at the intersection of this column and the specified row.

GetCellContent(Object)

Gets the Content property value for the cell at the intersection of this column and the row that represents the specified data item.

public:
 System::Windows::FrameworkElement ^ GetCellContent(System::Object ^ dataItem);
public System.Windows.FrameworkElement GetCellContent (object dataItem);
member this.GetCellContent : obj -> System.Windows.FrameworkElement
Public Function GetCellContent (dataItem As Object) As FrameworkElement

Parameters

dataItem
Object

The data item that is represented by the row that contains the intended cell.

Returns

The cell content; or null, if the cell is not found.

Exceptions

dataItem is null.

Applies to

GetCellContent(DataGridRow)

Retrieves the Content property value for the cell at the intersection of this column and the specified row.

public:
 System::Windows::FrameworkElement ^ GetCellContent(System::Windows::Controls::DataGridRow ^ dataGridRow);
public System.Windows.FrameworkElement GetCellContent (System.Windows.Controls.DataGridRow dataGridRow);
member this.GetCellContent : System.Windows.Controls.DataGridRow -> System.Windows.FrameworkElement
Public Function GetCellContent (dataGridRow As DataGridRow) As FrameworkElement

Parameters

dataGridRow
DataGridRow

The row that contains the intended cell.

Returns

The cell content; or null, if the cell is not found.

Exceptions

dataGridRow is null.

Applies to