Type | Description | |||
Editor | An Editor object that is associated to the column. |
Use the Editor object to assign the same type of editor to all cells in the column. The Editor objects holds information about editing cells in the column. Use the EditType property to specify the column's edit type. Use the CellEditor property to assign a particular editor to a cell. Use the CellEditorVisible property to hide the cell's editor. Use the CellValue property to assign a value to a cell.
The following VB sample assigns a date editor to the first column:
With G2antt1.Columns(0).Editor .EditType = DateType End With
The following C++ sample assigns a date editor to the first column:
#include "Column.h" #include "Columns.h" CColumn column = m_g2antt.GetColumns().GetItem( COleVariant( long(0) ) ); CEditor editor = column.GetEditor(); editor.SetEditType( 7/*DateType*/ );
The following VB.NET sample assigns a date editor to the first column:
With AxG2antt1.Columns(0).Editor .EditType = EXG2ANTTLib.EditTypeEnum.DateType End With
The following C# sample assigns a date editor to the first column:
EXG2ANTTLib.Editor editor = axG2antt1.Columns[0].Editor; editor.EditType = EXG2ANTTLib.EditTypeEnum.DateType;
The following VFP sample assigns a date editor to the first column:
with thisform.G2antt1.Columns.Item(0).Editor .EditType = 7 && DateType endwith