Skip to main content
DataGridLoadingRow Event
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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)

public event EventHandler<DataGridRowEventArgs> LoadingRow
public:
event EventHandler<DataGridRowEventArgs^>^ LoadingRow {
	void add(EventHandler<DataGridRowEventArgs^>^ value);
	void remove(EventHandler<DataGridRowEventArgs^>^ value);
}
member LoadingRow : IEvent<EventHandler<DataGridRowEventArgs>,
    DataGridRowEventArgs>
Public Event LoadingRow As EventHandler(Of DataGridRowEventArgs)

To improve performance, the property is set to true by default. When the 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 UnloadingRowevent.

.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Return to top