バージョン

IsCardCompressed プロパティ

カードは折りたたまれているか展開されているかを示す値を返します。
シンタックス
'宣言
 
Public Overridable Property IsCardCompressed As Boolean
public virtual bool IsCardCompressed {get; set;}
解説

このプロパティは、バンドがカードビュー(この行の IsCard プロパティが True を返す)で、なおかつ StyleCompressed に設定されている場合のみ適用されます。これらの条件が満たされない場合、戻り値は不定になります。

また、このプロパティはグループ行には適用されず、グループ行に対する戻り値は不定になります。

使用例
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 );

}
参照