Version

Scrollbar Enumeration

Determines if a scrollbar will be shown on a specific row or column scroll region
Syntax
'Declaration
 
Public Enum Scrollbar 
   Inherits System.Enum
public enum Scrollbar : System.Enum 
Members
MemberDescription
DefaultDefault. The grid's ScrollBars property value determines if scrollbars are shown.
Hidedo not show the scroll bar
Showalways show the scroll bar
ShowIfNeededonly show it if needed
Example
Following code splits the first row scroll region into two and set the ScrollBar property of the first one to Hide so the scroll bar in that row-scroll-region is hidden.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button5.Click

      ' Split the first row-scroll-region and col-scroll-region into two.
      Me.UltraGrid1.DisplayLayout.RowScrollRegions(0).Split()
      Me.UltraGrid1.DisplayLayout.ColScrollRegions(0).Split()

      ' Set the ScrollBar to Hide.
      Me.UltraGrid1.DisplayLayout.RowScrollRegions(0).Scrollbar = Infragistics.Win.UltraWinGrid.Scrollbar.Hide
      Me.UltraGrid1.DisplayLayout.ColScrollRegions(0).Scrollbar = Infragistics.Win.UltraWinGrid.Scrollbar.Hide

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

private void button5_Click(object sender, System.EventArgs e)
{

	// Split the first row-scroll-region and col-scroll-region into two.
	this.ultraGrid1.DisplayLayout.RowScrollRegions[0].Split( );
	this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Split( );

	// Set the ScrollBar to Hide.
	this.ultraGrid1.DisplayLayout.RowScrollRegions[0].Scrollbar = Infragistics.Win.UltraWinGrid.Scrollbar.Hide;
	this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Scrollbar = Infragistics.Win.UltraWinGrid.Scrollbar.Hide;

}
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