Property

Type

Description

BackImageUrl

string

Use it to get or set the URL to an image to display in the background

Caption

string

The property is used to get or set the text to render in an HTML caption element in a GridView control. With this property you can make the control more accessible to users of assistive technology devices.

CaptionAlign

TableCaptionAlign

The property is used to get or set the horizontal or vertical position of the HTML caption element in a GridView control. With this property you can make the control more accessible to users of assistive technology devices. The following positions are applicable:

  • TableCaptionAlign.Bottom – The caption element is aligned with the bottom of the table.
  • TableCaptionAlign.Left – The caption element is aligned with the left side of the table.
  • TableCaptionAlign.NotSet – The caption element’s alignment is not set.
  • TableCaptionAlign.Right – The caption element is aligned with the right side of the table.
  • TableCaptionAlign.Top – The caption element is aligned with the top of the table.

CellPadding

int

You can use it to get or set the amount of space between the contents of a cell and the cell’s border.

CellSpacing

int

Gets or sets the amount of space between cells.

GridLines

GridLines

You can use this property to specify the gridline style for a GridView control. The following styles are applicable:

  • GridLines.None – No gridlines are displayed
  • GridLines.Horizontal – Displays the horizontal gridlines only.
  • GridLines.Vertical – Displays the vertical gridlines only.
  • GridLines.Both – Displays both the horizontal and vertical gridlines.

HorizontalAlign

HorizontalAlign

 

The property is used to specify the horizontal alignment of the control on the page. The following alignments are applicable:

  • HorizontalAlign.NotSet – The horizontal alignment of the GridView control has not been set.
  • HorizontalAlign.Left – The GridView control is left-aligned on the page.
  • HorizontalAlign.Center – The GridView control is centered on the page.
  • HorizontalAlign.Right – The GridView control is right-aligned on the page.
  • HorizontalAlign.Justify – The GridView control is aligned with both the left and right margins of the page.

EmptyDataText

string

The property is used to indicate the text to render in the control when it is bound to an empty data source.

PagerSettings

PagerSettings

 

The property is used to reference an object that let developer to set the properties of the page buttons

ShowFooter

bool

You can use it to get or set a value indicating whether the footer row is displayed in a GridView control.

ShowHeader

bool

You can use it to get or set a value indicating whether the header row is displayed in a GridView control.