'Declaration Public Enum Scrollbar Inherits System.Enum
public enum Scrollbar : System.Enum
Member | Description |
---|---|
Default | Default. The grid's ScrollBars property value determines if scrollbars are shown. |
Hide | do not show the scroll bar |
Show | always show the scroll bar |
ShowIfNeeded | only show it if needed |
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; }
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