If the grid is bound to a valid data source, the grid checks the ViewStyle property and determines if the data source is supplying a hierarchical recordset or a flat recordset.
If the data source is supplying hierarchical data and the ViewStyle property is set to 1 (ViewStyleMultiBand) the grid displays a hierarchical recordset. Otherwise, the grid displays a flat, single-band recordset.
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button2.Click ' Set the ViewStyle to SingleBand so only one tabel is displayed. Me.ultraGrid1.DisplayLayout.ViewStyle = ViewStyle.SingleBand ' Set the ViewStyleBand to OutlookGroupBy to enable outlook-group-by feature. Me.UltraGrid1.DisplayLayout.ViewStyleBand = ViewStyleBand.OutlookGroupBy End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button2_Click(object sender, System.EventArgs e) { // Set the ViewStyle to SingleBand so only one tabel is displayed. this.ultraGrid1.DisplayLayout.ViewStyle = ViewStyle.SingleBand; // Set the ViewStyleBand to OutlookGroupBy to enable outlook-group-by feature. this.ultraGrid1.DisplayLayout.ViewStyleBand = ViewStyleBand.OutlookGroupBy; }
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