DataGridTextColumn.RefreshCellContent Method

Refreshes the contents of a cell in the column in response to a column property value change.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

protected internal override void RefreshCellContent(
	FrameworkElement element,
	string propertyName


Type: System.Windows.FrameworkElement
The TextBlock or TextBox returned by the Content property of the cell to refresh.
Type: System.String
The name of the column property that has changed.


element is null.


element is not a TextBlock or TextBox.

This method is called one time for each cell when the value of one of the following properties changes.

This method propagates the change to the TextBlock or TextBox control in the specified cell, updating the corresponding property. A cell contains a TextBox control only when it is in editing mode.

Notes to Inheritors

When you inherit from DataGridTextColumn, you typically override the RefreshCellContent method to update cells in the column in response to column property changes.


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.

Community Additions