作成日: 2024/01/31 最終更新日: 2024/01/31
文書種別
技術情報
詳細
旧バージョンのMultiRow for Windows Forms 5.0JではCellFormattingイベントでCellFormattingEventArgsクラスのRowIndexを取得した場合、列ヘッダセクションでは0が取得されるのに対して、MultiRow for Windows Forms 12.0Jでは-1が取得されます。
MultiRow for Windows Forms 10.0Jで、列ヘッダセクションのインデックスを取得する場合にはSectionIndexプロパティを使用します。
[Visual Basic]
Imports GrapeCity.Win.MultiRow
Private Sub GcMultiRow1_CellFormatting(ByVal sender As Object, ByVal e As CellFormattingEventArgs) Handles GcMultiRow1.CellFormatting
Console.WriteLine("scope={0} cell={1} row={2} sectionID={3}", e.Scope, e.CellName, e.RowIndex, e.SectionIndex)
End Sub
[C#]
using GrapeCity.Win.MultiRow;
private void gcMultiRow1_CellFormatting(object sender, CellFormattingEventArgs e)
{
Console.WriteLine("scope={0} cell={1} row={2} sectionID={3}", e.Scope, e.CellName, e.RowIndex, e.SectionIndex);
}