This topic has not yet been rated - Rate this topic

DataGridColumn.GetCellContent Method (Object)

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

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)
public FrameworkElement GetCellContent(
	Object dataItem
)

Parameters

dataItem
Type: System.Object
The data item represented by the row that contains the intended cell.

Return Value

Type: System.Windows.FrameworkElement
The cell content. Returns null if the row containing dataItem is not found.
ExceptionCondition
ArgumentNullException

dataItem is null.

InvalidOperationException

This column has not been added to a DataGrid.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.