バージョン

BeforeRowRegionRemovedEventHandler デリゲート

行のスクロール領域が削除されたときに実行されるイベントを処理するためのデリゲート。
シンタックス
'宣言
 
Public Delegate Sub BeforeRowRegionRemovedEventHandler( _
   ByVal sender As Object, _
   ByVal e As BeforeRowRegionRemovedEventArgs _
) 
public delegate void BeforeRowRegionRemovedEventHandler( 
   object sender,
   BeforeRowRegionRemovedEventArgs e
)

パラメータ

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

   Private Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button5.Click

       ' Following code sets up the ultraGrid1 with 2 colum-scroll-regions and two
       ' row-scroll-regions and thus having a total of 4 row-col-intersection regions.

       ' Split the column-scroll-region and the row-scroll-region each.
       Me.ultraGrid1.DisplayLayout.ColScrollRegions(0).Split()
       Me.ultraGrid1.DisplayLayout.RowScrollRegions(0).Split()

   End Sub

   Private Sub UltraGrid1_BeforeColRegionRemoved(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.BeforeColRegionRemovedEventArgs) Handles ultraGrid1.BeforeColRegionRemoved

       Debug.WriteLine("ColScrollRegion with index of " & e.ColScrollRegion.Index & " is being removed. Canceling it.")

       ' Set Cancel to true to prevent the user from removing a colum scroll region.
       e.Cancel = True

   End Sub

   Private Sub UltraGrid1_BeforeRowRegionRemoved(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.BeforeRowRegionRemovedEventArgs) Handles ultraGrid1.BeforeRowRegionRemoved

       Debug.WriteLine("RowScrollRegion with index of " & e.RowScrollRegion.Index & " is being removed. Canceling it.")

       ' Set Cancel to true to prevent the user from removing a row scroll region.
       e.Cancel = True

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

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

	// Following code sets up the ultraGrid1 with 2 colum-scroll-regions and two
	// row-scroll-regions and thus having a total of 4 row-col-intersection regions.

	// Split the column-scroll-region and the row-scroll-region each.
	this.ultraGrid1.DisplayLayout.ColScrollRegions[0].Split( );
	this.ultraGrid1.DisplayLayout.RowScrollRegions[0].Split( );

}

private void ultraGrid1_BeforeColRegionRemoved(object sender, Infragistics.Win.UltraWinGrid.BeforeColRegionRemovedEventArgs e)
{

	Debug.WriteLine( "ColScrollRegion with index of " + e.ColScrollRegion.Index + " is being removed. Canceling it." );

	// Set Cancel to true to prevent the user from removing a colum scroll region.
	e.Cancel = true;

}

private void ultraGrid1_BeforeRowRegionRemoved(object sender, Infragistics.Win.UltraWinGrid.BeforeRowRegionRemovedEventArgs e)
{

	Debug.WriteLine( "RowScrollRegion with index of " + e.RowScrollRegion.Index + " is being removed. Canceling it." );

	// Set Cancel to true to prevent the user from removing a row scroll region.
	e.Cancel = true;

}
参照