New to Telerik UI for WinFormsStart a free 30-day trial

Editors

Updated over 6 months ago

RadVirtualGrid allows the users to edit the cells values. Usually this process starts by typing in the cell or by pressing F2. By default the editor type is determined according to the data value type. When in edit mode, the user can change the cell value and press Enter to commit the change or Esc to revert to the original value. Clicking outside the edited cell also commits the change.

Figure 1: Row editing indication

WinForms RadVirtualGrid Row editing indication

RadVirtualGrid can be made read-only by setting the AllowEdit property to false. In this case the editors would not appear.

Currently, RadVirtualGrid supports the following editors out of the box:

Editor typeDescriptionImage
VirtualGridCalculatorEditorRepresents a calculator editorWinForms RadVirtualGrid VirtualGridCalculatorEditor
VirtualGridDateTimeEditorRepresents a date time editorWinForms RadVirtualGrid VirtualGridDateTimeEditor
VirtualGridDropDownListEditorRepresents a DropDownList editorWinForms RadVirtualGrid VirtualGridDropDownListEditor
VirtualGridMaskedEditBoxEditorRepresents a masked editbox editorWinForms RadVirtualGrid VirtualGridMaskedEditBoxEditor
VirtualGridSpinEditorRepresents a spin editorWinForms RadVirtualGrid VirtualGridSpinEditor
VirtualGridTextBoxControlEditorRepresents a textbox control editorWinForms RadVirtualGrid VirtualGridTextBoxControlEditor
VirtualGridTextBoxEditorRepresents a textbox editorWinForms RadVirtualGrid VirtualGridTextBoxEditor
VirtualGridTimePickerEditorRepresents a time picker editorWinForms RadVirtualGrid VirtualGridTimePickerEditor
VirtualGridBrowseEditorRepresents a browse editorWinForms RadVirtualGrid VirtualGridBrowseEditor
VirtualGridColorPickerEditorRepresents a color editorWinForms RadVirtualGrid VirtualGridColorPickerEditor

RadVirtualGrid exposes an API for defining the data types of its columns. If the data type is explicitly set it wil determine the cell editors used in this column. Otherwise, the editor is determined by the cell value. The API works by column index.

Defining a Columns`s Data Type

C#
this.radVirtualGrid1.MasterViewInfo.ColumnDataTypes[0] = typeof(int);

Reading a Columns`s Data Type

C#
Type dataType = this.radVirtualGrid1.MasterViewInfo.GetColumnDataType(1);

See Also

In this article
EditorsSee Also
Not finding the help you need?
Contact Support