Version

IsCard Property (UltraGridRow)

Returns whether this row is being displayed in Card View mode. This property is read-only.
Syntax
'Declaration
 
Public Overridable ReadOnly Property IsCard As Boolean
public virtual bool IsCard {get;}
Remarks

If the UltraGridBand object containing this mode has its CardView property set to True, then the band is in Card View mode and this property will return True.

Example
Following code shows how IsCard property off the UltraGridRow works. It indicates whether the card view is turned on on the associated band so that all the rows in that band are card rows.

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

   Private Sub Button68_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button68.Click

       Dim band0Row As UltraGridRow = Me.UltraGrid1.Rows(0)
       Dim band1Row As UltraGridRow = band0Row.GetChild(ChildRow.First)

       Debug.WriteLine("Before turning on the card view in band 1, band1Row.IsCard = " & band1Row.IsCard)

       ' Turn on the card view band 1
       Me.UltraGrid1.DisplayLayout.Bands(1).CardView = True

       Debug.WriteLine("After turning on the card view in band 1, band1Row.IsCard = " & band1Row.IsCard)

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

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

	UltraGridRow band0Row = this.ultraGrid1.Rows[0];
	UltraGridRow band1Row = band0Row.GetChild( ChildRow.First );

	Debug.WriteLine( "Before turning on the card view in band 1, band1Row.IsCard = " + band1Row.IsCard );

	// Turn on the card view band 1
	this.ultraGrid1.DisplayLayout.Bands[1].CardView = true;

	Debug.WriteLine( "After turning on the card view in band 1, band1Row.IsCard = " + band1Row.IsCard );

}
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