'Declaration Public Event AfterRowCollapsed As RowEventHandler
public event RowEventHandler AfterRowCollapsed
The event handler receives an argument of type RowEventArgs containing data related to this event. The following RowEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Row | The row (usually the row that the cell belongs to) (read-only) |
The row argument returns a reference to an UltraGridRow object that can be used to set properties of, and invoke methods on, the row that was collapsed. You can use this reference to access any of the returned row's properties or methods.
This event is generated after a row has been collapsed, either programmatically, or by user interaction. A row can be collapsed programmatically by setting its Expanded property to False.
The expansion (plus/minus) indicators can be hidden for a row to prevent the user from expanding or collapsing it by setting the ExpansionIndicator property.
The BeforeRowExpanded and AfterRowExpanded events are generated before and after, respectively, a collapsed row has been expanded.
The BeforeRowCollapsed event, which occurs before a row has been collapsed, is generated before this event.
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Imports System.Diagnostics Private Sub UltraGrid1_AfterRowCollapsed(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.RowEventArgs) Handles ultraGrid1.AfterRowCollapsed ' AfterRowCollapsed gets fired after a row has been collapsed. Debug.WriteLine("Expanded property of the row should be false: " & e.Row.Expanded.ToString()) End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void ultraGrid1_AfterRowCollapsed(object sender, Infragistics.Win.UltraWinGrid.RowEventArgs e) { // AfterRowCollapsed gets fired after a row has been collapsed. Debug.WriteLine( "Expanded property of the row should be false: " + e.Row.Expanded.ToString( ) ); }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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