Wisej.Web.DataGridViewRow
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.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.
dataGridView
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.
DataGridViewChildRowCollection: Returns the collection of child rows and keeps a reference to the collection to prevent the GC from clearing the weak reference.
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.
Int32: Returns the default minimum height saving an entry in the property store.
Int32: Returns the default row height.
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
)
Boolean: Returns whether the cell collection has been created.
Boolean: Returns a value indicating whether the ErrorText property has been set.
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.
Boolean: Returns or sets whether this DataGridViewRow is a virtual row.
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 ChildRows 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.
Point[]: REturns an array of selected cells coordinates. Null if the row doesn't contain selected cells.
Boolean: Returns or sets whether the row is visible. (Default: True
)
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.
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.
Clears all the references to the owner grid for itself and all related cells.
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.
Returns the error text for the row at the specified index.
Returns: String. A string that describes the error of the row at the specified index.
row
expanded
Renders the row.
Returns: Object.
Renders the row into the specified dynamic object.
rowData
Resets the row height.
Sets the values of the row's cells.
values
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.
values
Returns: Boolean.
Updates the cell on the client.
Provides access to the UserData
and Tag
properties associated to the component implementing this interface.
One or more objects that represent the cell values in the row. or An of values.
Represents a summary row in a control.