Spread WPF Documentation
CellDoubleClick Event (GcSpreadSheet)
Example 


GrapeCity.Windows.SpreadSheet.UI Namespace > GcSpreadSheet Class : CellDoubleClick Event
Occurs when the user presses down the left mouse button twice (double-clicks) in a cell.
Syntax
'Declaration
 
Public Event CellDoubleClick As System.EventHandler(Of CellDoubleClickEventArgs)
'Usage
 
Dim instance As GcSpreadSheet
Dim handler As System.EventHandler(Of CellDoubleClickEventArgs)
 
AddHandler instance.CellDoubleClick, handler
public event System.EventHandler<CellDoubleClickEventArgs> CellDoubleClick
Event Data

The event handler receives an argument of type CellDoubleClickEventArgs containing data related to this event. The following CellDoubleClickEventArgs properties provide information specific to this event.

PropertyDescription
Gets the column index of the clicked cell.  
Gets the row index of the clicked cell.  
Gets the area the clicked cell is in.  
Example
This example uses the CellDoubleClick event.
private void gcSpreadSheet1_CellClick(object sender, GrapeCity.Windows.SpreadSheet.UI.CellClickEventArgs e)
        {
            listBox1.Items.Add(e.ButtonType.ToString());
            listBox1.Items.Add(e.Column.ToString());
            listBox1.Items.Add(e.Row.ToString());
            listBox1.Items.Add(e.SheetArea.ToString());
        }

private void gcSpreadSheet1_CellDoubleClick(object sender, GrapeCity.Windows.SpreadSheet.UI.CellDoubleClickEventArgs e)
        {
            listBox1.Items.Add(e.Column.ToString());
            listBox1.Items.Add(e.Row.ToString());
            listBox1.Items.Add(e.SheetArea.ToString());            
        }
Private Sub GcSpreadSheet1_CellClick(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.CellClickEventArgs) Handles GcSpreadSheet1.CellClick
        ListBox1.Items.Add(e.ButtonType.ToString())
        ListBox1.Items.Add(e.Column.ToString())
        ListBox1.Items.Add(e.Row.ToString())
        ListBox1.Items.Add(e.SheetArea.ToString())
    End Sub

    Private Sub GcSpreadSheet1_CellDoubleClick(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.CellDoubleClickEventArgs) Handles GcSpreadSheet1.CellDoubleClick
        ListBox1.Items.Add(e.Column.ToString())
        ListBox1.Items.Add(e.Row.ToString())
        ListBox1.Items.Add(e.SheetArea.ToString())
    End Sub
See Also