DataGridColumn.GetCellContent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET