バージョン

GetRelatedVisibleColumn メソッド

各列のヘッダーの ColumnHeader.VisiblePosition に基づくバンドの次/前/最初/最後の列を取得します。
シンタックス
'宣言
 
Public Function GetRelatedVisibleColumn( _
   ByVal relation As VisibleRelation _
) As UltraGridColumn
public UltraGridColumn GetRelatedVisibleColumn( 
   VisibleRelation relation
)

パラメータ

relation
この列に要求される列が持つ必要がある関係。

戻り値の型

関連する列。
使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports System.Diagnostics

   Private Sub Button131_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button131.Click

       Dim column As UltraGridColumn = Me.UltraGrid1.DisplayLayout.Bands(0).Columns(0)

       Debug.WriteLine("Columns in visible order: ")

       ' Get the first visible column by passing in VisibleRelation.First.
       column = column.GetRelatedVisibleColumn(VisibleRelation.First)

       While Not column Is Nothing
           Debug.WriteLine("   " & column.Key)

           ' Get the next visible column by passing in VisibleRelation.Next.
           column = column.GetRelatedVisibleColumn(VisibleRelation.Next)
       End While

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

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

	UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].Columns[0];

	Debug.WriteLine( "Columns in visible order: ");

	// Get the first visible column by passing in VisibleRelation.First.
	column = column.GetRelatedVisibleColumn( VisibleRelation.First );

	while ( null != column )
	{
		Debug.WriteLine( "   " + column.Key );

		// Get the next visible column by passing in VisibleRelation.Next.
		column = column.GetRelatedVisibleColumn( VisibleRelation.Next );
	}

}
参照