Type | Description | |||
Column as Column | A Column object being inserted to the Columns collection. |
Use the AddColumn event to notify your application that a new column has been added. Use Add method to add new columns to the control. The AddColumn event is called even if the user binds the control to an ADO recordset using DataSource property. Use the Def property to specify default values for certain properties of a Column object. Use the AddColumn property to associate extra data to columns being added. The ColumnAutoResize property specifies whether the columns fit the control's client area. Use the Width property to specify the column's width.
Syntax for AddColumn event, /NET version, on:
private void AddColumn(object sender,exontrol.EXGRIDLib.Column Column) { } Private Sub AddColumn(ByVal sender As System.Object,ByVal Column As exontrol.EXGRIDLib.Column) Handles AddColumn End Sub |
private void AddColumn(object sender, AxEXGRIDLib._IGridEvents_AddColumnEvent e) { } void OnAddColumn(LPDISPATCH Column) { } void __fastcall AddColumn(TObject *Sender,Exgridlib_tlb::IColumn *Column) { } procedure AddColumn(ASender: TObject; Column : IColumn); begin end; procedure AddColumn(sender: System.Object; e: AxEXGRIDLib._IGridEvents_AddColumnEvent); begin end; begin event AddColumn(oleobject Column) end event AddColumn Private Sub AddColumn(ByVal sender As System.Object, ByVal e As AxEXGRIDLib._IGridEvents_AddColumnEvent) Handles AddColumn End Sub Private Sub AddColumn(ByVal Column As EXGRIDLibCtl.IColumn) End Sub Private Sub AddColumn(ByVal Column As Object) End Sub LPARAMETERS Column PROCEDURE OnAddColumn(oGrid,Column) RETURN |
<SCRIPT EVENT="AddColumn(Column)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function AddColumn(Column) End Function </SCRIPT> Procedure OnComAddColumn Variant llColumn Forward Send OnComAddColumn llColumn End_Procedure METHOD OCX_AddColumn(Column) CLASS MainDialog RETURN NIL void onEvent_AddColumn(COM _Column) { } function AddColumn as v (Column as OLE::Exontrol.Grid.1::IColumn) end function function nativeObject_AddColumn(Column) return |
The following VB sample changes the column's width, when adding the column:
Private Sub Grid1_AddColumn(ByVal Column As EXGRIDLibCtl.IColumn) Column.Width = 128 End Sub
The following C++ sample changes the column's width:
#include "Column.h" void OnAddColumnGrid1(LPDISPATCH Column) { CColumn column( Column );column.m_bAutoRelease = FALSE; column.SetWidth( 128 ); }
The following VB.NET sample changes the column's width:
Private Sub AxGrid1_AddColumn(ByVal sender As Object, ByVal e As AxEXGRIDLib._IGridEvents_AddColumnEvent) Handles AxGrid1.AddColumn e.column.Width = 128 End Sub
The following C# sample changes the column's width:
private void axGrid1_AddColumn(object sender, AxEXGRIDLib._IGridEvents_AddColumnEvent e) { e.column.Width = 128; }
The following VFP sample changes the column's width:
*** ActiveX Control Event *** LPARAMETERS column with column .Width = 128 endwith