Back to Devexpress

DataViewBase.AllowEditing Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-bef40008.md

latest4.3 KB
Original Source

DataViewBase.AllowEditing Property

Gets or sets whether users can change cell values. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool AllowEditing { get; set; }
vb
Public Property AllowEditing As Boolean

Property Value

TypeDescription
Boolean

true, to allow data editing; otherwise, false.

|

Remarks

Users can edit cell values if the view’s AllowEditing option is set to true and the DataViewBase.NavigationStyle property is set to GridViewNavigationStyle.Cell.

Use the ColumnBase.AllowEditing property to override the view’s AllowEditing value for individual columns.

Tip

Set the column’s ColumnBase.ReadOnly to true to prevent users from editing column values, but allow users to select and copy cell text.

Refer to the Data Editing and Validation topic for more information.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AllowEditing 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.

wpf-propertygrid-add-an-item-to-a-collection-or-a-dictionary/CS/Dictionary/MainWindow.xaml#L19

xml
<dxg:GridControl.View>
    <dxg:TableView AllowEditing="False" AutoWidth="True"/>
</dxg:GridControl.View>

wpf-synchronous-theme-preload-with-splashscreen/CS/ThemePreloadwithSplashscreen/ComplexWindow.xaml#L196

xml
<dxg:TableView
    AllowEditing="False"
    AutoWidth="True"

wpf-treelist-load-nodes-dynamically/CS/DynamicNodeLoading/MainWindow.xaml#L21

xml
<dxg:TreeListView x:Name="view"
                  AllowEditing="False"
                  AutoWidth="True"

wpf-scheduler-drop-data-from-grid-control-to-create-appointments/CS/DragDropFromGridExample/MainWindow.xaml#L57

xml
ShowGroupPanel="False"
AllowEditing="False"
Header="Patients"

wpf-ganttcontrol-getting-started/CS/GanttControlDemoApp/MainWindow.xaml#L20

xml
AutoExpandAllNodes="True"
AllowEditing="False"
AllowSorting="False">

See Also

AllowEditing

Edit and Validate Data

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace