作成日: 2024/01/31 最終更新日: 2024/01/31
文書種別
使用方法
詳細
CellMouseDoubleClickイベント内で、ダブルクリックされたセル型を判定することで、行ヘッダ型セルがダブルクリックされた場合のみに処理を行うことが可能です。
[Visual Basic]
[C#]
[Visual Basic]
Imports GrapeCity.Win.MultiRow
Private Sub GcMultiRow1_CellMouseDoubleClick(ByVal sender As Object, ByVal e As GrapeCity.Win.MultiRow.CellMouseEventArgs) Handles GcMultiRow1.CellMouseDoubleClick
If e.Scope = CellScope.Row Then
If TypeOf GcMultiRow1(e.RowIndex, e.CellIndex) Is RowHeaderCell Then
Debug.Print("RowIndex:{0}, CellIndex:{1}", e.RowIndex, e.CellIndex)
End If
End If
End Sub
[C#]
using GrapeCity.Win.MultiRow;
private void gcMultiRow1_CellMouseDoubleClick(object sender, CellMouseEventArgs e)
{
if (e.Scope == CellScope.Row)
{
if (gcMultiRow1[e.RowIndex, e.CellIndex] is RowHeaderCell)
{
System.Diagnostics.Debug.Print("RowIndex:{0}, CellIndex:{1}", e.RowIndex, e.CellIndex);
}
}
}