The properties of System.Windows.Forms.DataGrid are listed below. For a list of all members, see the DataGrid Members list.
See Also: Inherited members from System.Windows.Forms.Control
AllowNavigation | bool.
Gets or sets a value indicating whether navigation is allowed. | |
AllowSorting | bool.
Gets or sets a value indicating whether the grid can be resorted by clicking on a column header. | |
AlternatingBackColor | System.Drawing.Color.
Gets or sets the background color of odd-numbered rows of the grid. | |
override | BackColor | System.Drawing.Color.
Gets or sets the background color of even-numbered rows of the grid. |
BackgroundColor | System.Drawing.Color.
Gets or sets the color of the non-row area of the grid. | |
override | BackgroundImage | System.Drawing.Image.
This member is not meaningful for this control. |
override | BackgroundImageLayout | ImageLayout.
This member is not meaningful for this control. |
BorderStyle | BorderStyle.
Gets or sets the grid's border style. | |
CaptionBackColor | System.Drawing.Color.
Gets or sets the background color of the caption area. | |
CaptionFont | System.Drawing.Font.
Gets or sets the font of the grid's caption. | |
CaptionForeColor | System.Drawing.Color.
Gets or sets the foreground color of the caption area. | |
CaptionText | string.
Gets or sets the text of the grid's window caption. | |
CaptionVisible | bool.
Gets or sets a value that indicates whether the grid's caption is visible. | |
ColumnHeadersVisible | bool.
Gets or sets a value indicating whether the column headers of a table are visible. | |
CurrentCell | DataGridCell.
Gets or sets which cell has the focus. Not available at design time. | |
CurrentRowIndex | int.
Gets or sets index of the row that currently has focus. | |
override | Cursor | Cursor.
This member is not meaningful for this control. |
DataMember | string.
Gets or sets the specific list in a DataGrid.DataSource for which the System.Windows.Forms.DataGrid control displays a grid. | |
DataSource | object.
Gets or sets the data source that the grid is displaying data for. | |
[read-only] | FirstVisibleColumn | int.
Gets the index of the first visible column in a grid. |
FlatMode | bool.
Gets or sets a value indicating whether the grid displays in flat mode. | |
override | ForeColor | System.Drawing.Color.
Gets or sets the foreground color (typically the color of the text) property of the System.Windows.Forms.DataGrid control. |
GridLineColor | System.Drawing.Color.
Gets or sets the color of the grid lines. | |
GridLineStyle | DataGridLineStyle.
Gets or sets the line style of the grid. | |
HeaderBackColor | System.Drawing.Color.
Gets or sets the background color of all row and column headers. | |
HeaderFont | System.Drawing.Font.
Gets or sets the font used for column headers. | |
HeaderForeColor | System.Drawing.Color.
Gets or sets the foreground color of headers. | |
default property | Item(DataGridCell) | object. Documentation for this section has not yet been entered. |
default property | Item(int, int) | object. Documentation for this section has not yet been entered. |
LinkColor | System.Drawing.Color.
Gets or sets the color of the text that you can click to navigate to a child table. | |
LinkHoverColor | System.Drawing.Color.
This member is not meaningful for this control. | |
ParentRowsBackColor | System.Drawing.Color.
Gets or sets the background color of parent rows. | |
ParentRowsForeColor | System.Drawing.Color.
Gets or sets the foreground color of parent rows. | |
ParentRowsLabelStyle | DataGridParentRowsLabelStyle.
Gets or sets the way parent row labels are displayed. | |
ParentRowsVisible | bool.
Gets or sets a value indicating whether the parent rows of a table are visible. | |
PreferredColumnWidth | int.
Gets or sets the default width of the grid columns in pixels. | |
PreferredRowHeight | int.
Gets or sets the preferred row height for the System.Windows.Forms.DataGrid control. | |
ReadOnly | bool.
Gets or sets a value indicating whether the grid is in read-only mode. | |
RowHeadersVisible | bool.
Gets or sets a value that specifies whether row headers are visible. | |
RowHeaderWidth | int.
Gets or sets the width of row headers. | |
SelectionBackColor | System.Drawing.Color.
Gets or sets the background color of selected rows. | |
SelectionForeColor | System.Drawing.Color.
Gets or set the foreground color of selected rows. | |
override | Site | System.ComponentModel.ISite. Documentation for this section has not yet been entered. |
[read-only] | TableStyles | GridTableStylesCollection.
Gets the collection of System.Windows.Forms.DataGridTableStyle objects for the grid. |
override | Text | string.
This member is not meaningful for this control. |
[read-only] | VisibleColumnCount | int.
Gets the number of visible columns. |
[read-only] | VisibleRowCount | int.
Gets the number of rows visible. |
[read-only] override | DefaultSize | System.Drawing.Size.
Gets the default size of the control. |
[read-only] | HorizScrollBar | ScrollBar.
Gets the horizontal scroll bar for the grid. |
ListManager | CurrencyManager.
Gets the System.Windows.Forms.CurrencyManager for this System.Windows.Forms.DataGrid control. | |
[read-only] | VertScrollBar | ScrollBar.
Gets the vertical scroll bar of the control. |