Occurs when a
Column has been moved.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public event EventHandler<GridColumnEventArgs> ColumnMoved |
Visual Basic |
---|
Public Event ColumnMoved As EventHandler(Of GridColumnEventArgs) |
Visual C++ |
---|
public:
event EventHandler<GridColumnEventArgs^>^ ColumnMoved {
void add (EventHandler<GridColumnEventArgs^>^ value);
void remove (EventHandler<GridColumnEventArgs^>^ value);
} |
F# |
---|
member ColumnMoved : 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);
};
grid.Headers.Add(new Header());
grid.Headers[0].Add(new Column("Price"));
grid.Headers[0].Add(new Column("Quantity"));
grid.Headers[0]["Price"].VisibleIndex = 1;
}
|
Thread Safety
This event is always raised in the GUI thread
See Also