The version that you requested is unavailable. We've redirected you to the latest version of the help.
Version

AfterRowExpanded Event

Occurs after a row with children has been expanded.
Syntax
'Declaration
 
Public Event AfterRowExpanded As RowEventHandler
public event RowEventHandler AfterRowExpanded
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 expanded. 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 expanded, either programmatically, or by user interaction. A row can be expanded programmatically by setting its Expanded property to True.

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 BeforeRowCollapsed and AfterRowCollapsed events are generated before and after, respectively, an expanded row has been collapsed.

The BeforeRowExpanded event, which occurs before a row has been expanded, is generated before this event.

Example
Following code shows some of the information available in AfterRowExpanded 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_AfterRowExpanded(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.RowEventArgs) Handles ultraGrid1.AfterRowExpanded

       ' AfterRowExpanded gets fired after a row has been expanded.
       Debug.WriteLine("Expanded property of the row should be true: " & e.Row.Expanded.ToString())

   End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void ultraGrid1_AfterRowExpanded(object sender, Infragistics.Win.UltraWinGrid.RowEventArgs e)
{

	// AfterRowExpanded gets fired after a row has been expanded.

	Debug.WriteLine( "Expanded property of the row should be true: " + 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