This topic describes how to disable a particular field’s cells and how to set a field to be read-only in the xamDataPresenter™ controls.
The following topics are prerequisites to understanding this topic:
Topic | Purpose |
---|---|
This section defines the major elements that constitute the controls that make up The Data Presenter Family. |
|
This topic describes how to add a xamDataGrid control to your page. |
This topic contains the following sections:
In some cases, you may want to prevent the user from editing Field
data through the UI in the xamDataPresenter controls. In order to do that, set the Field IsReadOnly
property to true
.
Note that, you still can modify the editor’s value through code.
The default value of the IsReadOnly
property is null
which resolves to false.
The following table maps the desired configuration to the property settings that manage it.
In order to: | Use this property: | And set it to: |
---|---|---|
Set a |
|
You can enable or disable a specific Cell
in the xamDataPresenter controls to override the setting on its associated Field
.
The following topics provide additional information related to this topic.
Topic | Purpose |
---|---|
This topic describes the xamDataPresenter and xamEditors controls. |
|
This topic describes how to create a section in your Window for data entry tasks using XAML. |
|
This topic describes how to access cell values in the active Record through xamDataPresenter RecordActivated event. |
|
This topic describes how to modify a xamDataPresenter control selection functionality for Cells, Records, and Fields. |
|
This topic lists the data type and the editor that is registered to edit it by default in the xamDataPresenter controls. |
|
This topic describes how to embed any control into a cell by creating a custom template. |
|
This topic describes how to embed xamEditor control into a cell by creating a custom style. |
The following sample provides additional information related to this topic.
Sample | Purpose |
---|---|
This sample demonstrates how to exclude particular fields from tab navigation, how to disable cells at runtime and how to set a field to be read- only in the xamDataGrid control. |