RadGrid for ASP.NET

RadGrid Send comments on this topic.
EditCommandName Field
See Also 
Telerik.WebControls Namespace > RadGrid Class : EditCommandName Field


Represents the "Edit" command name. This field is read-only. 

Example

The example below demonstrates how to use the "Edit" command within an ItemTemplate.

            <rad:GridTemplateColumn UniqueName="TemplateColumn">
            
                <ItemTemplate>
            
                    <asp:LinkButton runat="server" ID="Edit" Text="Edit" CommandName="Edit">
                
                    </asp:LinkButton>
            
                </ItemTemplate>
            
            </rad:GridTemplateColumn>
            

 

Namespace: Telerik.WebControls
Assembly: RadGrid (in RadGrid.dll)

Syntax

Visual Basic (Declaration) 
Public Shared EditCommandName As String
Visual Basic (Usage)Copy Code
Dim value As String
 
value = RadGrid.EditCommandName
 
RadGrid.EditCommandName = value
C# 
public static string EditCommandName

Example

The example below demonstrates how to use the "Edit" command within an ItemTemplate.

            <rad:GridTemplateColumn UniqueName="TemplateColumn">
            
                <ItemTemplate>
            
                    <asp:LinkButton runat="server" ID="Edit" Text="Edit" CommandName="Edit">
                
                    </asp:LinkButton>
            
                </ItemTemplate>
            
            </rad:GridTemplateColumn>
            

Remarks

Use the EditCommandName field to represent the "Edit" command name. This command enters RadGrid in edit mode.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also