This documentation is archived and is not being maintained.

DataGrid::LoadingRow Event

Occurs after a DataGridRow is instantiated, so that you can customize it before it is used.

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

 event EventHandler<DataGridRowEventArgs^>^ LoadingRow {
	void add (EventHandler<DataGridRowEventArgs^>^ value);
	void remove (EventHandler<DataGridRowEventArgs^>^ value);
<object LoadingRow="EventHandler<DataGridRowEventArgs>" .../>

To improve performance, the EnableRowVirtualization property is set to true by default. When the EnableRowVirtualization property is set to true, the DataGrid does not instantiate a DataGridRow object for each data item in the bound data source. Instead, the DataGrid creates DataGridRow objects only when they are needed, and reuses them as much as it can. For example, the DataGrid creates a DataGridRow object for each data item that is currently in view and recycles the row when it scrolls out of view.

This event enables you to make any necessary changes to a row before it is used. To undo these customizations before a row is reused, handle the UnloadingRow event.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.