Skip to main content
Tab

GridViewDataColumn.LoadReadOnlyValueFromDataModel Property

Specifies whether the values of read-only columns can be loaded from a data source (model).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue(true)]
public virtual bool LoadReadOnlyValueFromDataModel { get; set; }

Property Value

Type Default Description
Boolean true

true to restrict users to load read-only columns’ values from a data source (model); otherwise, false.

Remarks

Web Forms:

<dx:ASPxGridView ID="gridView" >
    <Columns>
        <dx:GridViewDataColumn FieldName="ProductName" LoadReadOnlyValueFromDataModel="False" />
    </Columns>
</dx:ASPxGridView>

MVC:

settings.Columns.Add(column => {  
    column.FieldName = "ProductName";
    column.LoadReadOnlyValueFromDataModel = false;
}); 
See Also