PowerTools MultiRow for Windows Forms 8.0J
クリックの処理

イメージ型セル(ImageCell)のユーザーによるクリックを処理するには、GcMultiRow.CellContentClickイベントを使用します。
サンプルコード
Imports GrapeCity.Win.MultiRow

Private Sub GcMultiRow1_CellContentClick(ByVal sender As System.Object, _
    ByVal e As CellEventArgs) _
    Handles GcMultiRow1.CellContentClick
    
    Dim gcMultiRow As GcMultiRow = TryCast(sender, GcMultiRow)
    Dim currentCell As Cell = gcMultiRow.Rows(e.RowIndex).Cells(e.CellIndex)
    
    If TypeOf currentCell Is ImageCell Then
        If e.CellName = "セル名" Then
            ' ここに処理を記述してください。
        End If
    End If
End Sub
using GrapeCity.Win.MultiRow;

private void gcMultiRow1_CellContentClick(object sender, CellEventArgs e)
{
    GcMultiRow gcMultiRow = sender as GcMultiRow;
    Cell currentCell = gcMultiRow.Rows[e.RowIndex].Cells[e.CellIndex];
    
    if (currentCell is ImageCell)
    {
        if (e.CellName == "セル名")
        {
            // ここに処理を記述してください。
        }
    }
}

   
参照

 

 


© 2008-2015 GrapeCity inc. All rights reserved.