EditAsType Property (Cell)

Gets/sets a type that will be used to edit the data while in edit mode.
Public Property EditAsType As Type
public Type EditAsType {get; set;}

This might be used with a cell whose underlying datatype is 'string' or 'object' but where it should be edited as another type, e.g. a DataTime or double.

Refer to the Editors topic in the Developer's Guide for an explanation of editors.

Refer to the Editing Cell Values topic in the Developer's Guide for an explanation of how editing works.

Note that if you need to set more than one of EditAsType, EditorType and EditorStyle properties, you may want to use the SetEditorSettings method to set them all at once for better performance as it updates the CellValuePresenter associated with the cell only once.


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also