System.Windows.Forms.DataGridTableStyle: Property Members

The properties of System.Windows.Forms.DataGridTableStyle are listed below. For a list of all members, see the DataGridTableStyle Members list.

See Also: Inherited members from System.ComponentModel.Component

Public Properties

AllowSortingbool.

Indicates whether sorting is allowed on the grid table when this System.Windows.Forms.DataGridTableStyle is used.

AlternatingBackColorSystem.Drawing.Color.

Gets or sets the background color of odd-numbered rows of the grid.

BackColorSystem.Drawing.Color.

Gets or sets the background color of even-numbered rows of the grid.

ColumnHeadersVisiblebool.

Gets or sets a value indicating whether column headers are visible.

DataGridDataGrid.

Gets or sets the System.Windows.Forms.DataGrid control for the drawn table.

ForeColorSystem.Drawing.Color.

Gets or sets the foreground color of the grid table.

[read-only]
GridColumnStylesGridColumnStylesCollection.

Gets the collection of columns drawn for this table.

GridLineColorSystem.Drawing.Color.

Gets or sets the color of grid lines.

GridLineStyleDataGridLineStyle.

Gets or sets the style of grid lines.

HeaderBackColorSystem.Drawing.Color.

Gets or sets the background color of headers.

HeaderFontSystem.Drawing.Font.

Gets or sets the font used for header captions.

HeaderForeColorSystem.Drawing.Color.

Gets or sets the foreground color of headers.

LinkColorSystem.Drawing.Color.

Gets or sets the color of link text.

LinkHoverColorSystem.Drawing.Color.

Gets or sets the color displayed when hovering over link text.

MappingNamestring.

Gets or sets the name used to map this table to a specific data source.

PreferredColumnWidthint.

Gets or sets the width used to create columns when a new grid is displayed.

PreferredRowHeightint.

Gets or sets the height used to create a row when a new grid is displayed.

ReadOnlybool.

Gets or sets a value indicating whether columns can be edited.

RowHeadersVisiblebool.

Gets or sets a value indicating whether row headers are visible.

RowHeaderWidthint.

Gets or sets the width of row headers.

SelectionBackColorSystem.Drawing.Color.

Gets or sets the background color of selected cells.

SelectionForeColorSystem.Drawing.Color.

Gets or sets the foreground color of selected cells.