The GcMultiRow.CellContentClick event is used to handle a user click on the label cell.
Using Code
This example uses the CellContentClick event.
[VB]
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 = TryCast(sender, GcMultiRow)
Dim currentCell As Cell = gcMultiRow.Rows(e.RowIndex).Cells(e.CellIndex)
If TypeOf currentCell Is LabelCell Then
If e.CellName = "Cell Name" Then
If currentCell.Enabled = True Then
' Write your processing here.
End If
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 LabelCell)
{
if (e.CellName == "Cell Name")
{
if (currentCell.Enabled == true)
{
// Write your processing here.
}
}
}
}
|
See Also