GrapeCity MultiRow Windows Forms Documentation
Handle User Click (ImageCell)

Use the GcMultiRow.CellContentClick event to handle a user click with the image cell.

Using Code

This example uses the CellContentClick event to determine if the user clicks on the image cell.

[VB]

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 = "Cell Name" Then
            ' Write the processing here.
        End If
    End If
End Sub

[CS]

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 == "Cell Name")
        {
            // Write the processing here.
        }
    }
}
See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options