ButtonCell のクリックイベントをコーディングするには?
対象製品
MultiRow for Windows Forms 5.0J
詳細
ButtonCell のクリック操作に対応するイベントを記述するには、GcMultiRow.CellContentClick イベントを使用します。
[Visual Basic]
[C#]
[Visual Basic]
Imports GrapeCity.Win.MultiRow
Private Sub GcMultiRow1_CellContentClick(ByVal sender As System.Object, _
ByVal e As GrapeCity.Win.MultiRow.CellEventArgs) _
Handles GcMultiRow1.CellContentClick
Dim gcMultiRow As GcMultiRow = DirectCast(sender, GcMultiRow)
If TypeOf gcMultiRow.CurrentCell Is ButtonCell Then
If e.CellName = "セル名" Then
' ここに処理を記述してください。
End If
End If
End Sub
Private Sub GcMultiRow1_CellContentClick(ByVal sender As System.Object, _
ByVal e As GrapeCity.Win.MultiRow.CellEventArgs) _
Handles GcMultiRow1.CellContentClick
Dim gcMultiRow As GcMultiRow = DirectCast(sender, GcMultiRow)
If TypeOf gcMultiRow.CurrentCell Is ButtonCell Then
If e.CellName = "セル名" Then
' ここに処理を記述してください。
End If
End If
End Sub
[C#]
using GrapeCity.Win.MultiRow;
private void gcMultiRow1_CellContentClick(object sender, CellEventArgs e)
{
GcMultiRow gcMultiRow = (GcMultiRow)sender;
if (gcMultiRow.CurrentCell is ButtonCell)
{
if (e.CellName == "セル名")
{
// ここに処理を記述してください。
}
}
}
private void gcMultiRow1_CellContentClick(object sender, CellEventArgs e)
{
GcMultiRow gcMultiRow = (GcMultiRow)sender;
if (gcMultiRow.CurrentCell is ButtonCell)
{
if (e.CellName == "セル名")
{
// ここに処理を記述してください。
}
}
}
この文書は、以前は次のFAQ IDで公開されていました : 11330