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

Used for specifying UltraGridCardSettings.CardScrollbars property.

Syntax

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

Members

MemberDescription
HorizontalHorizontal specifies that the horizontal scroll bar be shown. If all the cards are visible then the scrollbar will be disabled.
NoneNone specifies that no scroll bars be shown.

Example

Following code hides the card-view related scrollbars by setting the CardScrollbars property off the card settings object to None in the button's click event handler.

Visual BasicCopy Code
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid


    Private Sub UltraGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout
        ' Turn on the card-view functionality.
        Me.UltraGrid1.DisplayLayout.Bands(0).CardView = True
    End Sub

    Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click
        ' Hide the scrollbars in card-areas.
        Me.UltraGrid1.DisplayLayout.Bands(0).CardSettings.CardScrollbars = CardScrollbars.None
    End Sub
C#Copy Code
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;


		private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
		{
			// Turn on the card-view functionality.
			this.ultraGrid1.DisplayLayout.Bands[0].CardView = true;
		}

		private void button1_Click(object sender, System.EventArgs e)
		{
			// Hide the scrollbars in card-areas.
			this.ultraGrid1.DisplayLayout.Bands[0].CardSettings.CardScrollbars = CardScrollbars.None;
		}

See Also