New to Telerik UI for WinForms? Download free 30-day trial


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


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 type Description Image
VirtualGridCalculatorEditor Represents a calculator editor virtualgrid-editing-using-custom-editors001
VirtualGridDateTimeEditor Represents a date time editor virtualgrid-editing-using-custom-editors002
VirtualGridDropDownListEditor Represents a DropDownList editor virtualgrid-editing-using-custom-editors003
VirtualGridMaskedEditBoxEditor Represents a masked editbox editor virtualgrid-editing-using-custom-editors004
VirtualGridSpinEditor Represents a spin editor virtualgrid-editing-using-custom-editors005
VirtualGridTextBoxControlEditor Represents a textbox control editor virtualgrid-editing-using-custom-editors006
VirtualGridTextBoxEditor Represents a textbox editor virtualgrid-editing-using-custom-editors006
VirtualGridTimePickerEditor Represents a time picker editor virtualgrid-editing-using-custom-editors007
VirtualGridBrowseEditor Represents a browse editor virtualgrid-editing-using-custom-editors008
VirtualGridColorPickerEditor Represents a color editor virtualgrid-editing-using-custom-editors009

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

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

Me.radVirtualGrid1.MasterViewInfo.ColumnDataTypes(0) = GetType(Integer)

Reading a Columns`s Data Type

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

Dim dataType As Type = Me.radVirtualGrid1.MasterViewInfo.GetColumnDataType(1)

See Also

In this article