System.Windows.Forms.DataGridViewRow Members

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

See Also: Inherited members from System.Windows.Forms.DataGridViewBand

Public Constructors

Initializes a new instance of the System.Windows.Forms.DataGridViewRow class without using a template.

Public Properties

[read-only]
AccessibilityObjectAccessibleObject.

Gets the System.Windows.Forms.DataGridViewRow.DataGridViewRowAccessibleObject assigned to the System.Windows.Forms.DataGridViewRow.

[read-only]
CellsDataGridViewCellCollection.

Gets the collection of cells that populate the row.

override
ContextMenuStripContextMenuStrip.

Gets or sets the shortcut menu for the row.

[read-only]
DataBoundItemobject.

Gets the data-bound object that populated the row.

override
DefaultCellStyleDataGridViewCellStyle.

Gets or sets the default styles for the row, which are used to render cells in the row unless the styles are overridden.

[read-only]
override
Displayedbool.

Gets a value indicating whether this row is displayed on the screen.

DividerHeightint.

Gets or sets the height, in pixels, of the row divider.

ErrorTextstring.

Gets or sets the error message text for row-level errors.

override
Frozenbool.

Gets or sets a value indicating whether the row is frozen.

HeaderCellDataGridViewRowHeaderCell.

Gets or sets the row's header cell.

Heightint.

Gets or sets the current height of the row.

[read-only]
override
InheritedStyleDataGridViewCellStyle.

Gets the cell style in effect for the row.

[read-only]
IsNewRowbool.

Gets a value indicating whether the row is the row for new records.

MinimumHeightint.

Gets or sets the minimum height of the row.

override
ReadOnlybool.

Gets or sets a value indicating whether the row is read-only.

override
ResizableDataGridViewTriState.

Gets or sets a value indicating whether users can resize the row or indicating that the behavior is inherited from the DataGridView.AllowUserToResizeRows property.

override
Selectedbool.

Gets or sets a value indicating whether the row is selected.

[read-only]
override
StateDataGridViewElementStates.

Gets the current state of the row.

override
Visiblebool.

Gets or sets a value indicating whether the row is visible.

Public Methods

AdjustRowHeaderBorderStyle(DataGridViewAdvancedBorderStyle, DataGridViewAdvancedBorderStyle, bool, bool, bool, bool) : DataGridViewAdvancedBorderStyle

Modifies an input row header border style according to the specified criteria.

override
Clone() : object

Creates an exact copy of this row.

CreateCells(DataGridView)

Clears the existing cells and sets their template according to the supplied System.Windows.Forms.DataGridView template.

CreateCells(DataGridView, params object[])

Clears the existing cells and sets their template and values.

GetContextMenuStrip(int) : ContextMenuStrip

Gets the shortcut menu for the row.

GetErrorText(int) : string

Gets the error text for the row at the specified index.

GetPreferredHeight(int, DataGridViewAutoSizeRowMode, bool) : int

Calculates the ideal height of the specified row based on the specified criteria.

GetState(int) : DataGridViewElementStates

Returns a value indicating the current state of the row.

SetValues(params object[]) : bool

Sets the values of the row's cells.

override
ToString() : string

Gets a human-readable string that describes the row.

Protected Methods