GroupView Settings in Windows Forms GroupView

28 Apr 20212 minutes to read

This section discusses the various settings that can be applied to define the look and behavior of the GroupView control.

Appearance settings

The following table describes the properties that enhance the appearance of the GroupView control.

this.groupView1.FlatLook = true;

this.groupView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
Me.groupView1.FlatLook = True

Me.groupView1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle

The border of the GroupView Items can be changed by drawing the border without the 3-dimensional edge which can be attained by setting the FlatLook property to true.

Flat look

We can specify the border style for the GroupView control using the BorderStyle property.

GroupView border style

Behavior settings

This section discusses the properties that determine the behavior of the GroupView control.

Drag-and-drop effect

This explains the drag-and-drop settings supported by the GroupView control.

this.groupView1.AllowDragDrop = true;

this.groupView1.AllowDragAnyObject = true;
Me.groupView1.AllowDragDrop = True

Me.groupView1.AllowDragAnyObject = True


Spacing can be provided between the GroupView Items, and between the GroupView control’s left border and the GroupView Items using the properties given below.

this.groupView1.ItemXSpacing = 5;

this.groupView1.ItemYSpacing = 10;
Me.groupView1.ItemXSpacing = 5

Me.groupView1.ItemYSpacing = 10


GroupBar with ItemXSpacing = “5” and ItemYSpacing = ‘“10”

Scroll settings

We can specify scrolling for the GroupBar control to view the set of GroupView Items back and forth. This can be achieved by setting the IntegratedScrolling property to true.

this.groupView2.IntegratedScrolling = False;
Me.groupView1.IntegratedScrolling = False

Scroll support