The members of System.Windows.Forms.DataGrid are listed below.
See Also: Inherited members from System.Windows.Forms.Control
DataGrid() |
Initializes a new instance of the System.Windows.Forms.DataGrid class. |
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. |
BeginEdit(DataGridColumnStyle, int)
| ||
BeginInit()
| ||
Collapse(int)
| ||
EndEdit(DataGridColumnStyle, int, bool)
| ||
EndInit()
| ||
Expand(int)
| ||
GetCellBounds(DataGridCell)
| ||
GetCellBounds(int, int)
| ||
GetCurrentCellBounds()
| ||
HitTest(System.Drawing.Point)
| ||
HitTest(int, int)
| ||
IsExpanded(int)
| ||
IsSelected(int)
| ||
NavigateBack()
| ||
NavigateTo(int, string)
| ||
ResetAlternatingBackColor()
| ||
override | ResetBackColor()
| |
override | ResetForeColor()
| |
ResetGridLineColor()
| ||
ResetHeaderBackColor()
| ||
ResetHeaderFont()
| ||
ResetHeaderForeColor()
| ||
ResetLinkColor()
| ||
ResetLinkHoverColor()
| ||
ResetSelectionBackColor()
| ||
ResetSelectionForeColor()
| ||
Select(int)
| ||
SetDataBinding(object, string)
| ||
SubObjectsSiteChange(bool)
| ||
UnSelect(int)
|
AllowNavigationChanged |
Occurs when the DataGrid.AllowNavigation property has changed. | |
BackButtonClick |
Occurs when the Back button on a child table is clicked. | |
BackgroundColorChanged |
Occurs when the DataGrid.BackgroundColor has changed. | |
BackgroundImageChanged |
Occurs when the value of the DataGrid.BackgroundImage property changes. | |
BackgroundImageLayoutChanged |
Occurs when the value of the DataGrid.BackgroundImageLayout property changes. | |
BorderStyleChanged |
Occurs when the DataGrid.BorderStyle has changed. | |
CaptionVisibleChanged |
Occurs when the DataGrid.CaptionVisible property has changed. | |
CurrentCellChanged |
Occurs when the DataGrid.CurrentCell property has changed. | |
CursorChanged |
Occurs when the value of the DataGrid.Cursor property changes. | |
DataSourceChanged |
Occurs when the DataGrid.DataSource property value has changed. | |
FlatModeChanged |
Occurs when the DataGrid.FlatMode has changed. | |
Navigate |
Occurs when the user navigates to a new table. | |
ParentRowsLabelStyleChanged |
Occurs when the label style of the parent row is changed. | |
ParentRowsVisibleChanged |
Occurs when the DataGrid.ParentRowsVisible property value changes. | |
ReadOnlyChanged |
Occurs when the DataGrid.ReadOnly property value changes. | |
Scroll |
Occurs when the user scrolls the System.Windows.Forms.DataGrid control. | |
ShowParentDetailsButtonClick |
Occurs when the ShowParentDetails button is clicked. | |
TextChanged |
Occurs when the value of the DataGrid.Text property changes. |
RowHeaderClick |
Occurs when a row header is clicked. |