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

ASPxWebControl.SetIECompatibilityMode(Int32) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public static void SetIECompatibilityMode(
    int IEVersion
Public Shared Sub SetIECompatibilityMode(
    IEVersion As Integer


Name Type Description
IEVersion Int32

An integer value that specifies the Internet Explorer browser version.


A call to the SetIECompatibilityMode method changes the render manner of all DevExpress controls on a page, so that they behave correctly under the specified IE version.

Note that the SetIECompatibilityMode method does not allow setting the IE version/mode for our controls to one that is higher than the one specified in the User-Agent parameter. This means that calling ASPxWebControl.SetIECompatibilityMode(9) does nothing if a request has been sent from IE8. To elevate the IE version, use the ASPxWebControl.SetIECompatibilityModeEdge method. It allows you to force all DevExpress ASP.NET controls on the specified page to use the latest available IE version.

This method is useful when it is necessary to switch all DevExpress controls on the specified page to use the specified IE version at runtime. To accomplish this task