Back to Devexpress

ASPxGridView.IsEditing Property

aspnet-devexpress-dot-web-dot-aspxgridview-03ac5568.md

latest2.7 KB
Original Source

ASPxGridView.IsEditing Property

Indicates whether the ASPxGridView is in edit mode.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public bool IsEditing { get; }
vb
Public ReadOnly Property IsEditing As Boolean

Property Value

TypeDescription
Boolean

true if the ASPxGridView is in edit mode; otherwise, false.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the IsEditing property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-grid-hide-edit-form-editor-programmatically/CS/Solution/Default.aspx.cs#L25

csharp
private void HideEditor(ASPxGridView gv) {
    if (gv.IsEditing && !gv.IsNewRowEditing) {
        string value = gv.GetRowValues(gv.EditingRowVisibleIndex, "CategoryName").ToString();

asp-net-web-forms-grid-hide-edit-form-editor-programmatically/VB/Solution/Default.aspx.vb#L24

vb
Private Sub HideEditor(ByVal gv As ASPxGridView)
    If gv.IsEditing AndAlso Not gv.IsNewRowEditing Then
        Dim value As String = gv.GetRowValues(gv.EditingRowVisibleIndex, "CategoryName").ToString()

See Also

CancelEdit()

UpdateEdit()

IsNewRowEditing

Grid View

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace