System.Web.UI.WebControls.GridView.HorizontalAlign Property

Gets or sets the horizontal alignment of a System.Web.UI.WebControls.GridView control on the page.

Syntax

[System.ComponentModel.DefaultValue(System.Web.UI.WebControls.HorizontalAlign.NotSet)]
[System.ComponentModel.Category("Layout")]
public virtual HorizontalAlign HorizontalAlign { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the GridView.HorizontalAlign property to specify the horizontal alignment of a System.Web.UI.WebControls.GridView control within the page. The following table lists the different horizontal alignment styles.

HorizontalAlign.NotSet

The horizontal alignment of the System.Web.UI.WebControls.GridView control has not been set.

HorizontalAlign.Left

The System.Web.UI.WebControls.GridView control is left-aligned on the page.

HorizontalAlign.Center

The System.Web.UI.WebControls.GridView control is centered on the page.

HorizontalAlign.Right

The System.Web.UI.WebControls.GridView control is right-aligned on the page.

HorizontalAlign.Justify

The System.Web.UI.WebControls.GridView control is aligned with both the left and right margins of the page.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0