Export (0) Print
Expand All
Expand Minimize

EditMode enumeration

This enumerator provides settings used to specify whether the cells contained in a record or field should allow editing.

Namespace:  Microsoft.SharePoint.JSGrid
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public enum EditMode

Member nameDescription
ReadOnly If EditMode.ReadOnly is applied to either a record or field, none of the cells contained within the record or field are editable.
ReadWriteIf EditMode.ReadWrite is applied to a record, this indicates that any cells appearing in that record, whose field is not specified as EditMode.ReadOnly, are editable. If EditMode.ReadWrite is applied to a field, it indicates that any cells appearing in that field are editable, assuming the records containing the cells are not specified as EditMode.ReadOnly.
ReadOnlyDeferIf applied to a record, EditMode.ReadOnlyDefer indicates that any cells appearing in that record are not editable, assuming that the field containing the cells is not specified as EditMode.ReadWrite. If specified on a field, EditMode.ReadOnlyDefer indicates that any cells appearing in that field, whose record is not specified as EditMode.ReadWrite, are not editable.
ReadWriteDeferIf EditMode.ReadWriteDefer is applied to a record, it indicates that any cells appearing in that record, whose field is not specified as EditMode.ReadWriteDefer or EditMode.ReadWrite, are editable. If EditMode.ReadWriteDefer is applied to a field, it indicates that any cells appearing in that field, whose record is not specified as EditMode.ReadWriteDefer or EditMode.ReadWrite, are editable.
DeferIf applied to a record, EditMode.Defer indicates that any cells appearing in that record are not editable, assuming the field containing the record is not specified as EditMode.ReadWriteDefer or EditMode.ReadWrite.

This example demonstrates setting a grid field to ReadWrite edit mode.


  // Set the edit mode of grid field gf to read / write.
   gf.EditMode = EditMode.ReadWrite;
Show:
© 2014 Microsoft