1<?xml version="1.0" encoding="utf-8"?>
2<Type Name="GridViewEditEventArgs" FullName="System.Web.UI.WebControls.GridViewEditEventArgs">
3  <TypeSignature Language="C#" Value="public class GridViewEditEventArgs : System.ComponentModel.CancelEventArgs" />
4  <AssemblyInfo>
5    <AssemblyName>System.Web</AssemblyName>
6    <AssemblyVersion>2.0.0.0</AssemblyVersion>
7  </AssemblyInfo>
8  <Base>
9    <BaseTypeName>System.ComponentModel.CancelEventArgs</BaseTypeName>
10  </Base>
11  <Interfaces />
12  <Docs>
13    <since version=".NET 2.0" />
14    <remarks>
15      <attribution license="cc4" from="Microsoft" modified="false" />
16      <para>The <see cref="T:System.Web.UI.WebControls.GridView" /> control raises the <see cref="E:System.Web.UI.WebControls.GridView.RowEditing" /> event when an Edit button (a button with its CommandName property set to "Edit") is clicked, but before the <see cref="T:System.Web.UI.WebControls.GridView" /> control enters edit mode. This allows you to provide an event-handling method that performs a custom routine, such as canceling the edit operation, whenever this event occurs.</para>
17      <para>A <see cref="T:System.Web.UI.WebControls.GridViewEditEventArgs" /> object is passed to the event-handling method, which allows you to determine the index of the row being edited and to indicate that the edit operation should be canceled. To cancel the edit operation, set the <see cref="P:System.ComponentModel.CancelEventArgs.Cancel" /> property of the <see cref="T:System.Web.UI.WebControls.GridViewEditEventArgs" /> object to true.</para>
18      <para>For more information about handling events, see <format type="text/html"><a href="01e4f1bc-e55e-413f-98c7-6588493e5f67">Consuming Events</a></format>.</para>
19      <para>For a list of initial property values for an instance of <see cref="T:System.Web.UI.WebControls.GridViewEditEventArgs" />, see the <see cref="M:System.Web.UI.WebControls.GridViewEditEventArgs.#ctor(System.Int32)" /> constructor.</para>
20    </remarks>
21    <summary>
22      <attribution license="cc4" from="Microsoft" modified="false" />
23      <para>Provides data for the <see cref="E:System.Web.UI.WebControls.GridView.RowEditing" /> event.</para>
24    </summary>
25  </Docs>
26  <Members>
27    <Member MemberName=".ctor">
28      <MemberSignature Language="C#" Value="public GridViewEditEventArgs (int editIndex);" />
29      <MemberType>Constructor</MemberType>
30      <Parameters>
31        <Parameter Name="editIndex" Type="System.Int32" />
32      </Parameters>
33      <Docs>
34        <param name="editIndex">To be added.</param>
35        <since version=".NET 2.0" />
36        <remarks>
37          <attribution license="cc4" from="Microsoft" modified="false" />
38          <para>Use this constructor to initialize a new instance of the <see cref="T:System.Web.UI.WebControls.GridViewEditEventArgs" /> class.</para>
39          <para>The following table shows the initial property value for an instance of <see cref="T:System.Web.UI.WebControls.GridViewEditEventArgs" />.</para>
40          <list type="table">
41            <listheader>
42              <item>
43                <term>
44                  <para>Property </para>
45                </term>
46                <description>
47                  <para>Initial value </para>
48                </description>
49              </item>
50            </listheader>
51            <item>
52              <term>
53                <para>
54                  <see cref="P:System.Web.UI.WebControls.GridViewEditEventArgs.NewEditIndex" /> </para>
55              </term>
56              <description>
57                <para>The value of the <paramref name="newEditIndex" /> parameter. </para>
58              </description>
59            </item>
60          </list>
61          <block subset="none" type="note">
62            <para>This constructor is used primarily by control developers when raising events.</para>
63          </block>
64        </remarks>
65        <summary>
66          <attribution license="cc4" from="Microsoft" modified="false" />
67          <para>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.GridViewEditEventArgs" /> class.</para>
68        </summary>
69      </Docs>
70      <AssemblyInfo>
71        <AssemblyVersion>2.0.0.0</AssemblyVersion>
72      </AssemblyInfo>
73    </Member>
74    <Member MemberName="NewEditIndex">
75      <MemberSignature Language="C#" Value="public int NewEditIndex { set; get; }" />
76      <MemberType>Property</MemberType>
77      <ReturnValue>
78        <ReturnType>System.Int32</ReturnType>
79      </ReturnValue>
80      <Docs>
81        <value>To be added.</value>
82        <since version=".NET 2.0" />
83        <remarks>
84          <attribution license="cc4" from="Microsoft" modified="false" />
85          <para>Use the <see cref="P:System.Web.UI.WebControls.GridViewEditEventArgs.NewEditIndex" /> property to determine the index of the row being edited. The row index is often used to retrieve this row from the <see cref="P:System.Web.UI.WebControls.GridView.Rows" /> collection of the <see cref="T:System.Web.UI.WebControls.GridView" /> control, which allows you to access the row's properties.</para>
86        </remarks>
87        <summary>
88          <attribution license="cc4" from="Microsoft" modified="false" />
89          <para>Gets or sets the index of the row being edited.</para>
90        </summary>
91      </Docs>
92      <AssemblyInfo>
93        <AssemblyVersion>2.0.0.0</AssemblyVersion>
94      </AssemblyInfo>
95    </Member>
96  </Members>
97</Type>