バージョン

BeforeRowResizeEventHandler デリゲート

行のサイズが変更される前に発生するイベントを処理するためのデリゲート。
シンタックス
'宣言
 
Public Delegate Sub BeforeRowResizeEventHandler( _
   ByVal sender As Object, _
   ByVal e As BeforeRowResizeEventArgs _
) 
public delegate void BeforeRowResizeEventHandler( 
   object sender,
   BeforeRowResizeEventArgs e
)

パラメータ

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

  Private Sub UltraGrid1_BeforeRowResize(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.BeforeRowResizeEventArgs) Handles ultraGrid1.BeforeRowResize

      If e.NewHeight > 50 Then
          ' Cancel the event so the UltraGrid doesn't proceed with resizing.
          e.Cancel = True

          ' Set the height to the max height, 50.
          e.Row.Height = 50
      End If

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

private void ultraGrid1_BeforeRowResize(object sender, Infragistics.Win.UltraWinGrid.BeforeRowResizeEventArgs e)
{

	if ( e.NewHeight > 50 )
	{
		// Cancel the event so the UltraGrid doesn't proceed with resizing.
		e.Cancel = true;

		// Set the height to the max height, 50.
		e.Row.Height = 50;
	}

}
参照