バージョン

SiblingRow 列挙体

現在の行とその兄弟行の間の関係を指定します。
シンタックス
'宣言
 
Public Enum SiblingRow 
   Inherits System.Enum
public enum SiblingRow : System.Enum 
メンバ
メンバ解説
First最初の兄弟。行は現在の行のバンド内の最初の兄弟です。
Last最後の兄弟。行は現在の行のバンド内の最後の兄弟です。
Next次の兄弟。行は現在の行のバンド内の次の兄弟です。
Previous前の兄弟。行は現在の行のバンド内の前の兄弟です。
解説

SiblingRow 列挙体は、UltraGridRow.GetSibling メソッドのようなさまざまなメソッドにパラメーターを指定するために使用されます。

使用例
Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid
Imports System.Diagnostics

   Private Sub Button72_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button72.Click

       ' Following code loops throug all the top level rows in the UltraGrid.
       ' It prints out the row indexes for illustration purposes.

       ' Get the first row in the UltraGrid.
       Dim row As UltraGridRow = Me.ultraGrid1.GetRow(ChildRow.First)

       ' Write the index of the row.
       Debug.WriteLine("" & row.Index)

       While row.HasNextSibling(True, False)
           row = row.GetSibling(SiblingRow.Next, True, False)

           ' Write the index of the row.
           Debug.WriteLine("" & row.Index)
       End While

   End Sub


   Private Sub Button73_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button73.Click

       ' Following code loops throug all the top level rows in the UltraGrid backwards.
       ' It prints out the row indexes for illustration purposes.

       ' Get the last row in the UltraGrid.
       Dim row As UltraGridRow = Me.ultraGrid1.GetRow(ChildRow.Last)

       ' Write the index of the row.
       Debug.WriteLine("" & row.Index)

       While row.HasPrevSibling(True, False)
           row = row.GetSibling(SiblingRow.Previous, True, False)

           ' Write the index of the row.
           Debug.WriteLine("" & row.Index)
       End While

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

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

	// Following code loops throug all the top level rows in the UltraGrid.
	// It prints out the row indexes for illustration purposes.

	// Get the first row in the UltraGrid.
	UltraGridRow row = this.ultraGrid1.GetRow( ChildRow.First );

	// Write the index of the row.
	Debug.WriteLine( "" + row.Index );

	while ( row.HasNextSibling( true, false ) )
	{
		row = row.GetSibling( SiblingRow.Next, true, false );

		// Write the index of the row.
		Debug.WriteLine( "" + row.Index );
	}

}

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

	// Following code loops throug all the top level rows in the UltraGrid backwards.
	// It prints out the row indexes for illustration purposes.

	// Get the last row in the UltraGrid.
	UltraGridRow row = this.ultraGrid1.GetRow( ChildRow.Last );

	// Write the index of the row.
	Debug.WriteLine( "" + row.Index );

	while ( row.HasPrevSibling( true, false ) )
	{
		row = row.GetSibling( SiblingRow.Previous, true, false );

		// Write the index of the row.
		Debug.WriteLine( "" + row.Index );
	}

}
参照