Occurs when a header is added to the
Grid.
Namespace: Dapfor.Net.UiAssembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)
Syntax
C# |
---|
public event EventHandler<GridHeaderEventArgs> HeaderAdded |
Visual Basic |
---|
Public Event HeaderAdded As EventHandler(Of GridHeaderEventArgs) |
Visual C++ |
---|
public:
event EventHandler<GridHeaderEventArgs^>^ HeaderAdded {
void add (EventHandler<GridHeaderEventArgs^>^ value);
void remove (EventHandler<GridHeaderEventArgs^>^ value);
} |
F# |
---|
member HeaderAdded : IEvent<EventHandler<GridHeaderEventArgs>,
GridHeaderEventArgs>
|
Value
Type:
System..::..EventHandler<(Of <(<'GridHeaderEventArgs>)>)>Examples
| Copy |
---|
public void InitializeGrid(Grid grid)
{
grid.HeaderAdded += delegate(object sender, GridHeaderEventArgs e)
{
Console.WriteLine("A header has been added on the {0} hierarchical level", e.Header.Level);
};
grid.HeaderRemoving += delegate(object sender, GridHeaderEventArgs e)
{
Console.WriteLine("A header is removing from the {0} hierarchical level", e.Header.Level);
};
grid.HeaderRemoved += delegate(object sender, GridHeaderEventArgs e)
{
Console.WriteLine("A header has been removed from the grid");
};
grid.HeaderHeightChanged += delegate(object sender, GridHeaderEventArgs e)
{
Console.WriteLine("The new height of the header = {0}", e.Header.Height);
};
grid.Headers.Add(new Header());
grid.Headers[0].Add(new Column("Price"));
grid.Headers[0].Add(new Column("Quantity"));
grid.Headers.Add(new Header());
grid.Headers[0].ColumnPanelHeight = 25;
grid.Headers[1].Visible = false;
grid.Headers[0]["Price"].VisibleIndex = 1;
grid.Headers.RemoveAt(0);
} |
Thread Safety
This event is always raised in the GUI thread
See Also