TextDirection Enumeration

Indicates the direction of characters in the grid control.

Namespace:  Microsoft.SharePoint.JSGrid
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public enum TextDirection

Member nameDescription
DefaultThe default text direction.
RightToLeftRepresents a right to left text direction.
LeftToRightRepresents a left to right text direction.

The JS Grid controlTextDirection enumeration specifies the direction text is displayed. The choices are as follows:

  1. Default   Default text direction.

  2. RightToLeft   Right to left text direction.

  3. LeftToRight   Left to right text direction.

The TextDirection property works with the locale ID (LCID) property to deliver a regionally appropriate grid or Gantt: Setting LCID for the control passes the indicated LCID to the grid panes. The grid pane passes the LCID to the columns.


gf.EditMode = TextDirection.RightToLeft;


Date columns are an exception to this behavior: A date column displays the dates and date picker formatted for the input LCID.