DataGrid.UnloadingRowDetails Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a row details element becomes available for reuse.
public:
event EventHandler<System::Windows::Controls::DataGridRowDetailsEventArgs ^> ^ UnloadingRowDetails;
public event EventHandler<System.Windows.Controls.DataGridRowDetailsEventArgs> UnloadingRowDetails;
member this.UnloadingRowDetails : EventHandler<System.Windows.Controls.DataGridRowDetailsEventArgs>
Public Custom Event UnloadingRowDetails As EventHandler(Of DataGridRowDetailsEventArgs)
Public Event UnloadingRowDetails As EventHandler(Of DataGridRowDetailsEventArgs)
Event Type
Remarks
This event occurs one time for each row to which a new row details template is applied or for which a row details template is removed. A new details template is applied or removed in one of the following cases:
The row DetailsTemplate property value changes.
The row DetailsTemplate property value is
null
and the RowDetailsTemplate property value changes.
This event enables you to make any necessary changes to the row details element before it is reused. You will typically use this event to undo any changes that were made in a LoadingRowDetails event handler.