Back to Devexpress

ASPxGridBase.RightToLeft Property

aspnet-devexpress-dot-web-dot-aspxgridbase-e3ce50d6.md

latest2.0 KB
Original Source

ASPxGridBase.RightToLeft Property

Specifies whether to apply right-to-left representation to the control.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(DefaultBoolean.Default)]
public DefaultBoolean RightToLeft { get; set; }
vb
<DefaultValue(DefaultBoolean.Default)>
Public Property RightToLeft As DefaultBoolean

Property Value

TypeDefaultDescription
DefaultBooleanDefault

One of the enumeration values.

|

Available values:

NameDescriptionReturn Value
True

The value is true.

|

0

| | False |

The value is false.

|

1

| | Default |

The value is specified by a global option or a higher-level object.

|

2

|

Remarks

Refer to the following topic for more information: Right to Left Support.

Run Demo: Grid - Right to Left

Vertical Scrollbar

According to grid design specifics, the vertical scrollbar is rendered on the right side in right-to-left mode. To render it on the left side, you can override the following CSS rules:

css
[dir='ltr'] {
    direction: rtl!important;
}
[dir='rtl'] .dxgvHSDC {
    padding-right: 0!important;
}

Note that this workaround may not work with some themes and may have visual side effects.

See Also

ASPxGridBase Class

ASPxGridBase Members

DevExpress.Web Namespace