Namespace: Dapfor.Net.Ui
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public event EventHandler<GridColumnEventArgs> ColumnRemoving |
Visual Basic |
---|
Public Event ColumnRemoving As EventHandler(Of GridColumnEventArgs) |
Visual C++ |
---|
public: event EventHandler<GridColumnEventArgs^>^ ColumnRemoving { void add (EventHandler<GridColumnEventArgs^>^ value); void remove (EventHandler<GridColumnEventArgs^>^ value); } |
F# |
---|
member ColumnRemoving : IEvent<EventHandler<GridColumnEventArgs>, GridColumnEventArgs> |
Value
Type: System..::..EventHandler<(Of <(<'GridColumnEventArgs>)>)>Examples
Copy | |
---|---|
public void InitializeGrid(Grid grid) { grid.ColumnAdded += delegate(object sender, GridColumnEventArgs e) { Console.WriteLine("The column '{0}' has been added to the grid", e.Column.Id); }; grid.ColumnMoved += delegate(object sender, GridColumnEventArgs e) { Console.WriteLine("The column '{0}' has been moved to {1} position", e.Column.Id, e.Column.VisibleIndex); }; //Add header and some columns grid.Headers.Add(new Header()); grid.Headers[0].Add(new Column("Price")); grid.Headers[0].Add(new Column("Quantity")); //Move the first column grid.Headers[0]["Price"].VisibleIndex = 1; } //Console output: //The column 'Price' has been added to the grid //The column 'Quantity' has been added to the grid //The column 'Price' has been moved to 1 position |
Thread Safety
This event is always raised in the GUI thread