Wisej.Web.DataGridViewRow
Namespace: Wisej.Web
Assembly: Wisej.Framework (2.5.0.0)
Represents a row in a DataGridView control.
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.
Name | Type | Description |
---|---|---|
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.
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.
Boolean: Returns or sets whether a row will move when a user scrolls the DataGridView control vertically.
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:
InvalidOperationException The specified cell when setting this property already belongs to a DataGridView control, or the specified cell when setting this property already belongs to a DataGridViewRow
ArgumentException The specified column does not belong to the same DataGridView that owns the cells.
ArgumentOutOfRangeException The index of the specified column is less than 0 or is equal to or greater than the number of cells in the collection.
DataGridViewCell: Returns or sets the cell at the provided index location.
Throws:
ArgumentNullException The specified value when setting this property is null.
InvalidOperationException The specified cell when setting this property already belongs to a DataGridView control, or the specified cell when setting this property already belongs to a DataGridViewRow.
ArgumentOutOfRangeException index is less than 0 or index is equal to or greater than the number of cells in the collection.
DataGridViewCell: Returns or sets the cell in the column with the provided name.
Throws:
ArgumentException columnName does not match the name of any columns in the control.
ArgumentNullException The specified value when setting this property is null.
InvalidOperationException The specified cell when setting this property already belongs to a DataGridView control, or the specified cell when setting this property already belongs to a DataGridViewRow.
Int32: Returns the child nesting level of this row.
Int32: Returns or sets the maximum height of the row.
Throws:
ArgumentOutOfRangeException The specified value when setting this property is less than 0 or greater than 32000.
Int32: Returns or sets the minimum height of the row.
Throws:
ArgumentOutOfRangeException The specified value when setting this property is less than 2 or greater than 32000.
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.
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.
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.
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.
Returns: Boolean. True if at least one of the values has been set; otherwise, false.
Throws:
ArgumentNullException values is null.
InvalidOperationException This method is called when the associated DataGridView is operating in virtual mode.
Updates the cell on the client.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
row
The row to find in the child row collections.
values
dataGridView