A newer version of this page is available. Switch to the current version.

ASPxWebControl.SetIECompatibilityModeEdge() Method

Switches all DevExpress controls on a page to use the latest IE version.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public static void SetIECompatibilityModeEdge()
Public Shared Sub SetIECompatibilityModeEdge


A call to the SetIECompatibilityModeEdge method changes the rendering manner of all DevExpress controls within a page, to ensure that they behave correctly under the specified IE version.

The universal approach for working with the SetIECompatibilityMode/SetIECompatibilityModeEdge methods is as follows:

This method is useful when it is necessary to switch all DevExpress controls on the specified page to use the latest IE version at runtime. To accomplish this task declaratively, consider using the IE Compatibility Version configuration option.

Refer to the KA18646 Knowledge Base article to learn more.

Example for ASP.NET WebForms

Code behind:

protected void Page_PreInit(object sender, EventArgs e) {