System.Windows.Forms.DataGridTableStyle Members

The members of System.Windows.Forms.DataGridTableStyle are listed below.

See Also: Inherited members from System.ComponentModel.Component

Public Constructors

Initializes a new instance of the System.Windows.Forms.DataGridTableStyle class.

Initializes a new instance of the System.Windows.Forms.DataGridTableStyle class using the specified value to determine whether the grid table is the default style.

Initializes a new instance of the System.Windows.Forms.DataGridTableStyle class with the specified System.Windows.Forms.CurrencyManager.

Public Fields

static readonly
DefaultTableStyleDataGridTableStyle.

Gets the default table style.

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.

Public Methods

BeginEdit(DataGridColumnStyle, int) : bool

Requests an edit operation.

EndEdit(DataGridColumnStyle, int, bool) : bool

Requests an end to an edit operation.

ResetAlternatingBackColor()

Resets the DataGridTableStyle.AlternatingBackColor property to its default value.

ResetBackColor()

Resets the DataGridTableStyle.BackColor property to its default value.

ResetForeColor()

Resets the DataGridTableStyle.ForeColor property to its default value.

ResetGridLineColor()

Resets the DataGridTableStyle.GridLineColor property to its default value.

ResetHeaderBackColor()

Resets the DataGridTableStyle.HeaderBackColor property to its default value.

ResetHeaderFont()

Resets the DataGridTableStyle.HeaderFont property to its default value.

ResetHeaderForeColor()

Resets the DataGridTableStyle.HeaderForeColor property to its default value.

ResetLinkColor()

Resets the DataGridTableStyle.LinkColor property to its default value.

ResetLinkHoverColor()

Resets the DataGridTableStyle.LinkHoverColor property to its default value.

ResetSelectionBackColor()

Resets the DataGridTableStyle.SelectionBackColor property to its default value.

ResetSelectionForeColor()

Resets the DataGridTableStyle.SelectionForeColor property to its default value.

Protected Methods

CreateGridColumn(System.ComponentModel.PropertyDescriptor) : DataGridColumnStyle

Creates a System.Windows.Forms.DataGridColumnStyle, using the specified property descriptor.

CreateGridColumn(System.ComponentModel.PropertyDescriptor, bool) : DataGridColumnStyle

Creates a System.Windows.Forms.DataGridColumnStyle using the specified property descriptor. Specifies whether the System.Windows.Forms.DataGridColumnStyle is a default column style.

override
Dispose(bool)

Disposes of the resources (other than memory) used by the System.Windows.Forms.DataGridTableStyle.

OnAllowSortingChanged(EventArgs)

Raises the DataGridTableStyle.AllowSortingChanged event.

OnAlternatingBackColorChanged(EventArgs)

Raises the DataGridTableStyle.AlternatingBackColorChanged event.

OnBackColorChanged(EventArgs)

Raises the DataGridTableStyle.BackColorChanged event.

OnColumnHeadersVisibleChanged(EventArgs)

Raises the DataGridTableStyle.ColumnHeadersVisibleChanged event.

OnForeColorChanged(EventArgs)

Raises the DataGridTableStyle.ForeColorChanged event.

OnGridLineColorChanged(EventArgs)

Raises the DataGridTableStyle.GridLineColorChanged event.

OnGridLineStyleChanged(EventArgs)

Raises the DataGridTableStyle.GridLineStyleChanged event.

OnHeaderBackColorChanged(EventArgs)

Raises the DataGridTableStyle.HeaderBackColorChanged event.

OnHeaderFontChanged(EventArgs)

Raises the DataGridTableStyle.HeaderFontChanged event.

OnHeaderForeColorChanged(EventArgs)

Raises the DataGridTableStyle.HeaderForeColorChanged event.

OnLinkColorChanged(EventArgs)

Raises the DataGridTableStyle.LinkColorChanged event.

OnLinkHoverColorChanged(EventArgs)

Raises the LinkHoverColorChanged event.

OnMappingNameChanged(EventArgs)

Raises the DataGridTableStyle.MappingNameChanged event

OnPreferredColumnWidthChanged(EventArgs)

Raises the DataGridTableStyle.PreferredColumnWidthChanged event.

OnPreferredRowHeightChanged(EventArgs)

Raises the DataGridTableStyle.PreferredRowHeightChanged event.

OnReadOnlyChanged(EventArgs)

Raises the DataGridTableStyle.ReadOnlyChanged event.

OnRowHeadersVisibleChanged(EventArgs)

Raises the DataGridTableStyle.RowHeadersVisibleChanged event.

OnRowHeaderWidthChanged(EventArgs)

Raises the DataGridTableStyle.RowHeaderWidthChanged event.

OnSelectionBackColorChanged(EventArgs)

Raises the DataGridTableStyle.SelectionBackColorChanged event.

OnSelectionForeColorChanged(EventArgs)

Raises the DataGridTableStyle.SelectionForeColorChanged event.

ShouldSerializeAlternatingBackColor() : bool

Indicates whether the DataGridTableStyle.AlternatingBackColor property should be persisted.

ShouldSerializeBackColor() : bool

Indicates whether the DataGridTableStyle.BackColor property should be persisted.

ShouldSerializeForeColor() : bool

Indicates whether the DataGridTableStyle.ForeColor property should be persisted.

ShouldSerializeGridLineColor() : bool

Indicates whether the DataGridTableStyle.GridLineColor property should be persisted.

ShouldSerializeHeaderBackColor() : bool

Indicates whether the DataGridTableStyle.HeaderBackColor property should be persisted.

ShouldSerializeHeaderForeColor() : bool

Indicates whether the DataGridTableStyle.HeaderForeColor property should be persisted.

ShouldSerializeLinkColor() : bool

Indicates whether the DataGridTableStyle.LinkColor property should be persisted.

ShouldSerializeLinkHoverColor() : bool

Indicates whether the DataGridTableStyle.LinkHoverColor property should be persisted.

ShouldSerializePreferredRowHeight() : bool

Indicates whether the DataGridTableStyle.PreferredRowHeight property should be persisted.

ShouldSerializeSelectionBackColor() : bool

Indicates whether the DataGridTableStyle.SelectionBackColor property should be persisted.

ShouldSerializeSelectionForeColor() : bool

Indicates whether the DataGridTableStyle.SelectionForeColor property should be persisted.

Public Events

AllowSortingChanged

Occurs when the DataGridTableStyle.AllowSorting property value changes.

AlternatingBackColorChanged

Occurs when the DataGridTableStyle.AlternatingBackColor value changes.

BackColorChanged

Occurs when the DataGridTableStyle.BackColor value changes.

ColumnHeadersVisibleChanged

Occurs when the DataGridTableStyle.ColumnHeadersVisible value changes.

ForeColorChanged

Occurs when the DataGridTableStyle.ForeColor value changes.

GridLineColorChanged

Occurs when the DataGridTableStyle.GridLineColor value changes.

GridLineStyleChanged

Occurs when the DataGridTableStyle.GridLineStyle value changes.

HeaderBackColorChanged

Occurs when the DataGridTableStyle.HeaderBackColor value changes.

HeaderFontChanged

Occurs when the DataGridTableStyle.HeaderFont value changes.

HeaderForeColorChanged

Occurs when the DataGridTableStyle.HeaderForeColor value changes.

LinkColorChanged

Occurs when the DataGridTableStyle.LinkColor value changes.

LinkHoverColorChanged

Occurs when the DataGridTableStyle.LinkHoverColor value changes.

MappingNameChanged

Occurs when the DataGridTableStyle.MappingName value changes.

PreferredColumnWidthChanged

Occurs when the DataGridTableStyle.PreferredColumnWidth property value changes.

PreferredRowHeightChanged

Occurs when the DataGridTableStyle.PreferredRowHeight value changes.

ReadOnlyChanged

Occurs when the DataGridTableStyle.ReadOnly value changes.

RowHeadersVisibleChanged

Occurs when the DataGridTableStyle.RowHeadersVisible value changes.

RowHeaderWidthChanged

Occurs when the DataGridTableStyle.RowHeaderWidth value changes.

SelectionBackColorChanged

Occurs when the DataGridTableStyle.SelectionBackColor value changes.

SelectionForeColorChanged

Occurs when the DataGridTableStyle.SelectionForeColor value changes.