Infragistics(R) NetAdvantage(R) Windows Forms
ViewStyleBand Enumeration
Example  See Also  E-mail your feedback on this topic.
Infragistics.Win.UltraWinGrid Namespace : ViewStyleBand Enumeration

Used to specify whether bands will display horizontally or vertically.

Syntax

Visual Basic (Declaration) 
Public Enum ViewStyleBand 
   Inherits System.Enum
C# 
public enum ViewStyleBand : System.Enum 

Members

MemberDescription
Horizontal Horizontal. Top of new rows appears aligned with parent's top, left of new rows appears to right of parent.
OutlookGroupBy Outlook group by view style
Vertical Vertical. Top of new rows appears under the parent, left of new rows appears indented.

Example

Following code sets the ViewStyle and ViewStyleBand properties.

Visual BasicCopy Code
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
C#Copy Code
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;

}

Remarks

See Also