Version

PreferredInViewGroupCount Property

Returns or sets the number of groups that are in view initially.
Syntax
'Declaration
 
Public Property PreferredInViewGroupCount As Integer
public int PreferredInViewGroupCount {get; set;}
Example
The following code sample demonstrates how to use the PreferredInViewColumnCount and PreferredInViewGroupCount properties to limit the number of columns that are displayed by the control.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        '	Set the PreferredInViewColumnCount and PreferredInViewGroupCount
        '	both to 1 so that only one column is displayed at a time.
        Me.UltraDayView1.PreferredInViewColumnCount = 1
        Me.UltraDayView1.PreferredInViewGroupCount = 1

    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

		private void button1_Click(object sender, System.EventArgs e)
		{
			//	Set the PreferredInViewColumnCount and PreferredInViewGroupCount
			//	both to 1 so that only one column is displayed at a time.
			this.ultraDayView1.PreferredInViewColumnCount = 1;
			this.ultraDayView1.PreferredInViewGroupCount = 1;
		}
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