'宣言 Public Event InitializeRowsCollection As InitializeRowsCollectionEventHandler
public event InitializeRowsCollectionEventHandler InitializeRowsCollection
イベント ハンドラが、このイベントに関連するデータを含む、InitializeRowsCollectionEventArgs 型の引数を受け取りました。次の InitializeRowsCollectionEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Rows | 作成された行コレクションを取得します。 |
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub UltraGrid1_InitializeRowsCollection(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeRowsCollectionEventArgs) Handles UltraGrid1.InitializeRowsCollection Dim rows As RowsCollection = e.Rows Dim count As Integer = rows.Count Dim band As UltraGridBand = rows.Band Dim parentRow As UltraGridRow = rows.ParentRow Dim parentRowId As String If Not Nothing Is parentRow Then parentRowId = parentRow.Cells(0).Text Else parentRowId = "{NULL}" End If System.Diagnostics.Debug.WriteLine(String.Format( _ "InitializeRowsCollection: count = {0} band = {1}, parent row = {2}", _ count, band.Key, parentRowId)) End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void UltraGrid1_InitializeRowsCollection(object sender, Infragistics.Win.UltraWinGrid.InitializeRowsCollectionEventArgs e) { RowsCollection rows = e.Rows; int count = rows.Count; UltraGridBand band = rows.Band; UltraGridRow parentRow = rows.ParentRow; string parentRowId; if ( null != parentRow ) { parentRowId = parentRow.Cells[0].Text; } else { parentRowId = "{NULL}"; } System.Diagnostics.Debug.WriteLine( string.Format( "InitializeRowsCollection: count = {0} band = {1}, parent row = {2}", count, band.Key, parentRowId ) ); }