1<?xml version="1.0" encoding="utf-8"?>
2<Type Name="DetailsViewMode" FullName="System.Web.UI.WebControls.DetailsViewMode">
3  <TypeSignature Language="C#" Value="public enum DetailsViewMode" />
4  <AssemblyInfo>
5    <AssemblyName>System.Web</AssemblyName>
6    <AssemblyVersion>2.0.0.0</AssemblyVersion>
7  </AssemblyInfo>
8  <Base>
9    <BaseTypeName>System.Enum</BaseTypeName>
10  </Base>
11  <Docs>
12    <since version=".NET 2.0" />
13    <remarks>
14      <attribution license="cc4" from="Microsoft" modified="false" />
15      <para>The <see cref="T:System.Web.UI.WebControls.DetailsViewMode" /> enumeration is used to represent the data-entry modes of a <see cref="T:System.Web.UI.WebControls.DetailsView" /> control. To determine the current mode of the control, use the <see cref="P:System.Web.UI.WebControls.DetailsView.CurrentMode" /> property. After an insert or update operation, the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control returns to the mode specified by the <see cref="P:System.Web.UI.WebControls.DetailsView.DefaultMode" /> property. By default, the control returns to read-only mode. You can specify an alternate mode to return to by setting the <see cref="P:System.Web.UI.WebControls.DetailsView.DefaultMode" /> property. To change modes programmatically, use the <see cref="M:System.Web.UI.WebControls.DetailsView.ChangeMode(System.Web.UI.WebControls.DetailsViewMode)" /> method. When the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control changes modes, the events in the following table are raised.</para>
16      <list type="table">
17        <listheader>
18          <item>
19            <term>
20              <para>Event</para>
21            </term>
22            <description>
23              <para>Description</para>
24            </description>
25          </item>
26        </listheader>
27        <item>
28          <term>
29            <para>
30              <see cref="E:System.Web.UI.WebControls.DetailsView.ModeChanging" />
31            </para>
32          </term>
33          <description>
34            <para>Occurs when a <see cref="T:System.Web.UI.WebControls.DetailsView" /> control attempts to change between edit, insert, and read-only mode, but before the mode actually changes. This event is often used to cancel a mode change.</para>
35          </description>
36        </item>
37        <item>
38          <term>
39            <para>
40              <see cref="E:System.Web.UI.WebControls.DetailsView.ModeChanged" />
41            </para>
42          </term>
43          <description>
44            <para>Occurs after a <see cref="T:System.Web.UI.WebControls.DetailsView" /> control has changed from edit, insert, or read-only mode to another mode. This event is often used to perform a task when the <see cref="T:System.Web.UI.WebControls.DetailsView" /> control changes modes.</para>
45          </description>
46        </item>
47      </list>
48    </remarks>
49    <summary>
50      <attribution license="cc4" from="Microsoft" modified="false" />
51      <para>Represents the different data-entry modes of a <see cref="T:System.Web.UI.WebControls.DetailsView" /> control.</para>
52    </summary>
53  </Docs>
54  <Members>
55    <Member MemberName="Edit">
56      <MemberSignature Language="C#" Value="Edit" />
57      <MemberType>Field</MemberType>
58      <ReturnValue>
59        <ReturnType>System.Web.UI.WebControls.DetailsViewMode</ReturnType>
60      </ReturnValue>
61      <Docs>
62        <since version=".NET 2.0" />
63        <summary>
64          <attribution license="cc4" from="Microsoft" modified="false" />
65          <para>An editing mode that allows the user to update the values of an existing record.</para>
66        </summary>
67      </Docs>
68      <AssemblyInfo>
69        <AssemblyVersion>2.0.0.0</AssemblyVersion>
70      </AssemblyInfo>
71    </Member>
72    <Member MemberName="Insert">
73      <MemberSignature Language="C#" Value="Insert" />
74      <MemberType>Field</MemberType>
75      <ReturnValue>
76        <ReturnType>System.Web.UI.WebControls.DetailsViewMode</ReturnType>
77      </ReturnValue>
78      <Docs>
79        <since version=".NET 2.0" />
80        <summary>
81          <attribution license="cc4" from="Microsoft" modified="false" />
82          <para>An inserting mode that allows the user to enter the values for a new record.</para>
83        </summary>
84      </Docs>
85      <AssemblyInfo>
86        <AssemblyVersion>2.0.0.0</AssemblyVersion>
87      </AssemblyInfo>
88    </Member>
89    <Member MemberName="ReadOnly">
90      <MemberSignature Language="C#" Value="ReadOnly" />
91      <MemberType>Field</MemberType>
92      <ReturnValue>
93        <ReturnType>System.Web.UI.WebControls.DetailsViewMode</ReturnType>
94      </ReturnValue>
95      <Docs>
96        <since version=".NET 2.0" />
97        <summary>
98          <attribution license="cc4" from="Microsoft" modified="false" />
99          <para>A display mode that prevents the user from modifying the values of a record.</para>
100        </summary>
101      </Docs>
102      <AssemblyInfo>
103        <AssemblyVersion>2.0.0.0</AssemblyVersion>
104      </AssemblyInfo>
105    </Member>
106  </Members>
107</Type>