.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.
.NET Core 3.0+
The page you are viewing does not exist in the .NET Core 3.0+ platform documentation. This link will take you to the parent topic of the current section.

ASPxGridListEditor.UseASPxGridViewDataSpecificColumns Property

Namespace: DevExpress.ExpressApp.Web.Editors.ASPx

Assembly: DevExpress.ExpressApp.Web.v19.2.dll

Declaration

[DefaultValue(true)]
public static bool UseASPxGridViewDataSpecificColumns { get; set; }
<DefaultValue(True)>
Public Shared Property UseASPxGridViewDataSpecificColumns As Boolean

Property Value

Type Default Description
Boolean

true

true, if the data-specific column types are used for data cells; otherwise - false.

Remarks

By default, the UseASPxGridViewDataSpecificColumns property value is true, i.e., data-specific column types are used for data cells. If there is no appropriate data-specific column type, data cell values are displayed using the ITemplate templates specified by the GridViewDataColumn.DataItemTemplate property. Edit cells use templates specified by GridViewDataColumn.EditItemTemplate, providing rich editing capabilities via the editors that are also used in Detail Views.

If the UseASPxGridViewDataSpecificColumns is false, the DataItemTemplate is always used for data cells. Note, in this case in the Batch edit mode, new rows cannot be edited and saved. To change the UseASPxGridViewDataSpecificColumns value, add the following code to the Application_Start method located in the Global.asax.cs (Global.asax.vb) file.

protected void Application_Start(Object sender, EventArgs e) {
    ASPxGridListEditor.UseASPxGridViewDataSpecificColumns = false;
    // ... 
}
Important

Please note the following limitations of data-specific columns:

  • You cannot navigate to a referenced object by clicking a cell that displays a reference property.
  • The "N/A" text is not displayed for null reference values.
See Also