다음을 통해 공유


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)

Syntax

'Declaration
Public Enumeration EditMode
'Usage
Dim instance As EditMode
public enum EditMode

Members

Member name Description
ReadOnly If EditMode.ReadOnly is applied to either a record or field, none of the cells contained within the record or field are editable.
ReadWrite If 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.
ReadOnlyDefer If 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.
ReadWriteDefer If 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.
Defer If 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.

Remarks

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;
' Set the edit mode of grid field gf to read / write.
   gf.EditMode = EditMode.ReadWrite

See Also

Reference

Microsoft.SharePoint.JSGrid Namespace