Version

IsCardCompressed Property

Indicates whether the card is compressed or expanded.
Syntax
'Declaration
 
Public Overridable Property IsCardCompressed As Boolean
public virtual bool IsCardCompressed {get; set;}
Remarks

This property only applies when the band is in card view (IsCard property returns true for this row) and the Style is set to Compressed. When these conditions are not met, returned value is undefined.

Also this does not apply to group by rows and for group by rows returned value will be undefined.

Example
Following code shows how to use IsCardCompressed property. It indicates whether a card row is comprssed or expanded. This only applies to the card-view style of Comprssed. Below code turns on the card-view and sets the card-view style to Compressed.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports System.Diagnostics

   Private Sub Button84_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button84.Click

       Dim band As UltraGridBand = Me.UltraGrid1.DisplayLayout.Bands(0)

       ' Trun on the card view and set the card-view style to compressed since IsCardCompressed
       ' only applies to card-view style of Compressed.
       band.CardView = True
       band.CardSettings.Style = CardStyle.Compressed

       ' Get the row to demonstrate the IsCardCompressed property on.
       Dim row As UltraGridRow = Me.UltraGrid1.Rows(0)

       ' By default, then cards are compressed. IsCardCompressed should be true.
       Debug.WriteLine("row.IsCardCompressed = " & row.IsCardCompressed)

       ' Set the IsCardCompressed to false to expand the card.
       row.IsCardCompressed = False

       ' Now the card row is expanded and IsCardCompressed should be false.
       Debug.WriteLine("row.IsCardCompressed = " & row.IsCardCompressed)

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

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

	UltraGridBand band = this.ultraGrid1.DisplayLayout.Bands[0];

	// Trun on the card view and set the card-view style to compressed since IsCardCompressed
	// only applies to card-view style of Compressed.
	band.CardView = true;
	band.CardSettings.Style = CardStyle.Compressed;

	// Get the row to demonstrate the IsCardCompressed property on.
	UltraGridRow row = this.ultraGrid1.Rows[0];

	// By default, then cards are compressed. IsCardCompressed should be true.
	Debug.WriteLine( "row.IsCardCompressed = " + row.IsCardCompressed );
	
	// Set the IsCardCompressed to false to expand the card.
	row.IsCardCompressed = false;

	// Now the card row is expanded and IsCardCompressed should be false.
	Debug.WriteLine( "row.IsCardCompressed = " + row.IsCardCompressed );

}
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