CellFormattingイベントで取得する列ヘッダセクションのRowIndexの値が5.0Jと異なります。
対象製品
MultiRow for Windows Forms 10.0J
詳細
旧バージョンのMultiRow for Windows Forms 5.0JではCellFormattingイベントでCellFormattingEventArgsクラスのRowIndexを取得した場合、列ヘッダセクションでは0が取得されるのに対して、MultiRow for Windows Forms 10.0Jでは-1が取得されます。
MultiRow for Windows Forms 10.0Jで、列ヘッダセクションのインデックスを取得する場合にはSectionIndexプロパティを使用します。
[Visual Basic]
[C#]
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); }