Occurs when the end-user clicking on the Cell.

Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public event EventHandler<GridCellEventArgs> CellClicking
Visual Basic
Public Event CellClicking As EventHandler(Of GridCellEventArgs)
Visual C++
public:
 event EventHandler<GridCellEventArgs^>^ CellClicking {
	void add (EventHandler<GridCellEventArgs^>^ value);
	void remove (EventHandler<GridCellEventArgs^>^ value);
}
F#
member CellClicking : IEvent<EventHandler<GridCellEventArgs>,
    GridCellEventArgs>

Value

Type: System..::..EventHandler<(Of <(<'GridCellEventArgs>)>)>

Examples

 Copy imageCopy
public void PopulateGrid(Grid grid)
{
    grid.Headers.Add(new Header());
    grid.Headers[0].Add(new Column("Price"));
    grid.Headers[0].Add(new Column("Quantity"));

    grid.CellClicking += delegate(object sender, GridCellEventArgs e)
    {
        Console.WriteLine("The user is clicking on the cell: row = {0}, column = {1})", e.Cell.Row.VisibleIndex, e.Cell.Column.Id);
    };

    grid.CellClicked += delegate(object sender, GridCellEventArgs e)
    {
        Console.WriteLine("The user has clicked on the cell: row = {0}, column = {1})", e.Cell.Row.VisibleIndex, e.Cell.Column.Id);
    };
}

Thread Safety

This event is always raised in the GUI thread

See Also