Freigeben über


DataGridTextColumn.RefreshCellContent Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Protected Friend Overrides Sub RefreshCellContent ( _
    element As FrameworkElement, _
    propertyName As String _
)
protected internal override void RefreshCellContent(
    FrameworkElement element,
    string propertyName
)

Parameters

  • propertyName
    Type: System.String
    The name of the column property that has changed.

Exceptions

Exception Condition
ArgumentNullException

element is nulla null reference (Nothing in Visual Basic).

ArgumentException

element is not a TextBlock or TextBox.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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