Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataGridViewRow Members

Represents a row in a DataGridView control.

The following tables list the members exposed by the DataGridViewRow type.

  Name Description
Public method DataGridViewRow Initializes a new instance of the DataGridViewRow class without using a template.
Top

(see also Protected Properties )
  Name Description
Public property AccessibilityObject Gets the DataGridViewRow.DataGridViewRowAccessibleObject assigned to the DataGridViewRow.
Public property Cells Gets the collection of cells that populate the row.
Public property ContextMenuStrip Overridden. Gets or sets the shortcut menu for the row.
Public property DataBoundItem Gets the data-bound object that populated the row.
Public property DataGridView  Gets the DataGridView control associated with this element.(inherited from DataGridViewElement)
Public property DefaultCellStyle Overridden. Gets or sets the default styles for the row, which are used to render cells in the row unless the styles are overridden.
Public property DefaultHeaderCellType  Gets or sets the run-time type of the default header cell.(inherited from DataGridViewBand)
Public property Displayed Overridden. Gets a value indicating whether this row is displayed on the screen.
Public property DividerHeight Gets or sets the height, in pixels, of the row divider.
Public property ErrorText Gets or sets the error message text for row-level errors.
Public property Frozen Overridden. Gets or sets a value indicating whether the row is frozen.
Public property HasDefaultCellStyle  Gets a value indicating whether the DefaultCellStyle property has been set. (inherited from DataGridViewBand)
Public property HeaderCell Gets or sets the row's header cell.
Public property Height Gets or sets the current height of the row.
Public property Index  Gets the relative position of the band within the DataGridView control.(inherited from DataGridViewBand)
Public property InheritedStyle Overridden. Gets the cell style in effect for the row.
Public property IsNewRow Gets a value indicating whether the row is the row for new records.
Public property MinimumHeight Gets or sets the minimum height of the row.
Public property ReadOnly Overridden. Gets or sets a value indicating whether the row is read-only.
Public property Resizable Overridden. Gets or sets a value indicating whether users can resize the row or indicating that the behavior is inherited from the DataGridView.AllowUserToResizeRows property.
Public property Selected Overridden. Gets or sets a value indicating whether the row is selected.
Public property State Overridden. Gets the current state of the row.
Public property Tag  Gets or sets the object that contains data to associate with the band.(inherited from DataGridViewBand)
Public property Visible Overridden. Gets or sets a value indicating whether the row is visible.
Top

  Name Description
Protected property HeaderCellCore  Gets or sets the header cell of the DataGridViewBand.(inherited from DataGridViewBand)
Protected property IsRow  Gets a value indicating whether the band represents a row.(inherited from DataGridViewBand)
Top

(see also Protected Methods )
  Name Description
Public method AdjustRowHeaderBorderStyle Modifies an input row header border style according to the specified criteria.
Public method Clone Overridden. Creates an exact copy of this row.
Public method CreateCells Overloaded. Resets the cells in the row.
Public method Dispose  Overloaded. Releases all resources used by the DataGridViewBand. (inherited from DataGridViewBand)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetContextMenuStrip Gets the shortcut menu for the row.
Public method GetErrorText Gets the error text for the row at the specified index.
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetPreferredHeight Calculates the ideal height of the specified row based on the specified criteria.
Public method GetState Returns a value indicating the current state of the row.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method SetValues Sets the values of the row's cells.
Public method ToString Overridden. Gets a human-readable string that describes the row.
Top

  Name Description
Protected method CreateAccessibilityInstance Creates a new accessible object for the DataGridViewRow.
Protected method CreateCellsInstance Constructs a new collection of cells based on this row.
Protected method Dispose  Overloaded. Releases all resources used by the DataGridViewBand. (inherited from DataGridViewBand)
Protected method DrawFocus Draws a focus rectangle around the specified bounds.
Protected method Finalize  Releases the resources associated with the band. (inherited from DataGridViewBand)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method OnDataGridViewChanged  Called when the band is associated with a different DataGridView. (inherited from DataGridViewBand)
Protected method Paint Paints the current row.
Protected method PaintCells Paints the cells in the current row.
Protected method PaintHeader Paints the header cell of the current row.
Protected method RaiseCellClick  Raises the DataGridView.CellClick event. (inherited from DataGridViewElement)
Protected method RaiseCellContentClick  Raises the DataGridView.CellContentClick event. (inherited from DataGridViewElement)
Protected method RaiseCellContentDoubleClick  Raises the DataGridView.CellContentDoubleClick event. (inherited from DataGridViewElement)
Protected method RaiseCellValueChanged  Raises the DataGridView.CellValueChanged event. (inherited from DataGridViewElement)
Protected method RaiseDataError  Raises the DataGridView.DataError event. (inherited from DataGridViewElement)
Protected method RaiseMouseWheel  Raises the Control.MouseWheel event. (inherited from DataGridViewElement)
Top

Community Additions

Show: