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

Specifies whether scrollbars in card-view are visible.

Syntax

Visual Basic (Declaration) 
Public Property CardScrollbars As CardScrollbars
C# 
public CardScrollbars CardScrollbars {get; set;}

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;
		}

Remarks

You can use CardScrollbars property to control the scrollbars in card area.

See Also