Occurs when the end-user has clicked on the
Cell.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public event EventHandler<GridCellEventArgs> CellClicked |
Visual Basic |
---|
Public Event CellClicked As EventHandler(Of GridCellEventArgs) |
Visual C++ |
---|
public:
event EventHandler<GridCellEventArgs^>^ CellClicked {
void add (EventHandler<GridCellEventArgs^>^ value);
void remove (EventHandler<GridCellEventArgs^>^ value);
} |
F# |
---|
member CellClicked : IEvent<EventHandler<GridCellEventArgs>,
GridCellEventArgs>
|
Value
Type:
System..::..EventHandler<(Of <(<'GridCellEventArgs>)>)>Examples
| Copy |
---|
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