DataGridViewRow

Wisej.Web.DataGridViewRow

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.5.0.0)

Represents a row in a DataGridView control.

public class DataGridViewRow : DataGridViewBand

Constructors

Initializes a new instance of the DataGridViewRow class.

Initializes a new instance of the DataGridViewRow class bound to a DataGridView. This constructor is used to create the RowTemplate object at design time.

NameTypeDescription

dataGridView

Properties

Int32: Returns the number of cells in the cell collection without forcing the creation of the collection.

DataGridViewCellCollection: Returns the collection of cells that populate the row.

DataGridViewChildRowCollection: Returns the collection of child rows.

ContextMenu: Returns or sets the context menu for the row. (Default: null)

Object: Returns the data-bound object that populated the row.

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

Boolean: Returns a value indicating whether this row is displayed on the screen.

String: Returns or sets the error message text for row-level errors. (Default: "")

Boolean: Returns or sets whether a row will move when a user scrolls the DataGridView control vertically. (Default: False)

DataGridViewRowHeaderCell: Returns or sets the row's header cell.

Int32: Returns or sets the current height of the row.

Boolean: Returns whether the row is a child row.

Boolean: Returns or sets whether the parent row is expanded.

Boolean: Returns a value indicating whether the row is the row for new records.

Boolean: Returns or sets whether the row is a parent row and can be expanded.

Setting this property to true when the row doesn't have any children, will cause the row to expand anyway and request the child rows from the server.

Boolean: Returns true when the implementation class is DataGridViewRow.

DataGridViewCell: Returns or sets the cell at the provided index location.

Throws:

DataGridViewCell: Returns or sets the cell at the provided index location.

Throws:

DataGridViewCell: Returns or sets the cell in the column with the provided name.

Throws:

Int32: Returns the child nesting level of this row.

Int32: Returns or sets the maximum height of the row.

Throws:

Int32: Returns or sets the minimum height of the row.

Throws:

DataGridViewRow: Returns or sets the parent row.

When a row has a parent row, it is displayed as child row in a tree-like structure. To enumerate all the child rows use the Rows property. When changing the parent row, Wisej tries to enforce the correct sequence of rows in the structure like this:

  • The preceding rows with null parent will also become child rows using the same parent.

  • If the parent being assigned is not a direct ancestor, it will throw an exception.

  • When setting the parent to null, all the following rows that are not descendants will also lose their parent.

  • When adding or inserting a row, the new row will receive the same parent as the row at the location it is being inserted at. Throws:

  • ArgumentException When the parent is not a valid ancestor and it would cause break in the tree sequence.

Boolean: Returns or sets whether the row is read-only. (Default: False)

DataGridViewTriState: Returns or sets whether users can resize the row or indicating that the behavior is inherited from the AllowUserToResizeRows property.

DataGridViewRow: Returns the parent top-level parent row.

Boolean: Returns or sets whether the row is selected.

Boolean: Returns or sets whether the row is visible. (Default: True)

Methods

Creates a copy of this row.

Returns: Object. The cloned DataGridViewRow.

Collapse the row and hides all the child rows.

Collapse the row and all the child rows.

Checks whether the specified row is a child of this row, or a child of a child of this row.

ParameterTypeDescription

row

The row to find in the child row collections.

Returns: Boolean. True if the specified row is a child of this row, or a child of a child of this row.

Expands the row and shows all the child rows.

Expands the row and all the child rows, showing all the child rows at all levels.

Resets the row height.

Sets the values of the row's cells.

ParameterTypeDescription

values

One or more objects that represent the cell values in the row. or An Array of Object values.

Returns: Boolean. True if at least one of the values has been set; otherwise, false.

Throws:

Updates the cell on the client.

Inherited By

NameDescription

Represents a summary row in a DataGridView control.

Last updated