Version

AfterRowCollapsed Event

Occurs after a row that has children has been collapsed.
Syntax
'Declaration
 
Public Event AfterRowCollapsed As RowEventHandler
public event RowEventHandler AfterRowCollapsed
Event Data

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.

PropertyDescription
Row The row (usually the row that the cell belongs to) (read-only)
Remarks

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.

Example
Following code shows some of the information available in AfterRowCollapsed event.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

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( ) );

}
Requirements

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

See Also