Wisej.Web.DataGridViewCell
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Represents an individual cell in a DataGridView control.
Int32: Returns the column index for this cell.
ContextMenu: Returns or sets the shortcut menu associated with the cell.
Control: Returns or sets a child control to display inside the cell.
DataGridView: Returns the DataGridView control associated with this DataGridViewCell.
Object: Returns the default value for a cell in the row for new records.
Boolean: Returns a value that indicates whether the cell is currently displayed.
Boolean: Returns whether the cell can be edited.
Object: Returns the current, formatted value of the cell, regardless of whether the cell is in edit mode and the value has not been committed.
Throws:
ArgumentOutOfRangeException The row containing the cell is a shared row; or the cell is a column header cell.
InvalidOperationException ColumnIndex is less than 0, indicating that the cell is a row header cell.
Exception Formatting failed and either there is no handler for the DataError event of the DataGridView control or the handler set the ThrowException property to true. The exception object can typically be cast to type FormatException.
String: Returns or sets the text describing an error condition associated with the cell.
Object: Returns the value of the cell as formatted for display.
Throws:
InvalidOperationException ColumnIndex is less than 0, indicating that the cell is a row header cell.
ArgumentOutOfRangeException The row containing the cell is a shared row; or the cell is a column header cell.
Exception Formatting failed and either there is no handler for the DataError event of the DataGridView control or the handler set the ThrowException property to true. The exception object can typically be cast to type FormatException.
Type: Returns the type of the formatted value associated with the cell.
Boolean: Returns a value indicating whether the cell is frozen.
Boolean: Returns true it the Style property has been set.
Boolean: Checks if the UserData dynamic object was created and has any value.
Int32: Returns the height of the cell.
DataGridViewElementStates: Returns the current state of the cell as inherited from the state of its row and column.
Throws:
ArgumentException The cell is not contained within a DataGridView control and the value of its RowIndex property is not -1.
ArgumentOutOfRangeException The cell is contained within a DataGridView control and the value of its RowIndex property is -1.
DataGridViewCellStyle: Returns the style currently applied to the cell.
Throws:
InvalidOperationException The cell does not belong to a DataGridView control; or ColumnIndex is less than 0, indicating that the cell is a row header cell.
ArgumentOutOfRangeException The row containing the cell is a shared row; or the cell is a column header cell.
Boolean: Returns whether this is the current cell in the DataGridView.
Boolean: Returns a value indicating whether this cell is currently being edited.
DataGridViewColumn: Returns the column that contains this cell.
DataGridViewRow: Returns the row that contains this cell.
Boolean: Returns or sets whether the cell's data can be edited.
Boolean: Returns a value indicating whether the cell can be resized.
Int32: Returns the index of the cell's parent row.
Boolean: Returns or sets whether the cell has been selected.
Size: Returns the size of the cell.
DataGridViewCellStyle: Returns or sets the style for the cell.
Object: Returns or sets the object that contains supplemental data about the cell.
String: Returns or sets the ToolTip text associated with this cell.
Object: Returns a dynamic object that can be used to store custom data in relation to this cell.
Boolean: Enables or disables the user paint feature for this cell. When UserPaint is true, the application can handle the CellPaint event to draw custom content in the cell.
Object: Returns or sets the value associated with this cell.
Throws:
ArgumentOutOfRangeException RowIndex is outside the valid range of 0 to the number of rows in the control minus 1.
InvalidOperationException ColumnIndex is less than 0, indicating that the cell is a row header cell.
Type: Returns or sets the data type of the values in the cell.
Boolean: Returns a value indicating whether the cell is in a row or column that has been hidden.
Int32: Returns the width of the cell.
Creates a copy of this cell.
Returns: DataGridViewCell. The cloned DataGridViewCell.
Returns the current, formatted value of the cell, regardless the cell being in edit mode.
Returns: Object. The current, formatted value of the DataGridViewCell.
Throws:
Exception Formatting failed and either there is no handler for the DataError event of the DataGridView control or the handler set the ThrowException property to true. The exception object can typically be cast to type FormatException.
Returns a value indicating the current state of the cell as inherited from the state of its row and column.
Returns: DataGridViewElementStates. A combination of DataGridViewElementStates values representing the current state of the cell.
Throws:
ArgumentException The cell is not contained within a DataGridView control and rowIndex is not -1 or rowIndex is not the index of the row containing this cell.
ArgumentOutOfRangeException The cell is contained within a DataGridView control and rowIndex is outside the valid range of 0 to the number of rows in the control minus 1.
Returns the style applied to the cell.
Returns: DataGridViewCellStyle. A DataGridViewCellStyle that includes the style settings of the cell inherited from the cell's parent row, column, and DataGridView.
Throws:
InvalidOperationException The cell has no associated DataGridView.
Converts a value to the actual cell value.
Returns: Object. The cell value.
Throws:
ArgumentNullException cellStyle is null.
FormatException The FormattedValueType property value is null or the ValueType property value is null or value cannot be converted.
ArgumentException value is null or the type of value does not match the type indicated by the FormattedValueType property.
Resets the ReadOnly state to inherit its value from the OwningColumn, OwningRowand the DataGridView.
Updates the cell on the client.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Name | Description |
---|---|
rowIndex
The index of the row containing the cell.
includeVisualProperties
true to include inherited visual properties; otherwise, false to include only formatting properties.
value
The display value of the cell.
cellStyle
The DataGridViewCellStyle in effect for the cell.
formattedTypeConverter
A TypeConverter for the display value type, or null to use the default converter.
valueTypeConverter
A TypeConverter for the cell value type, or null to use the default converter.
Displays a button widget in a DataGridViewCell cell.
Displays a CheckBox icon (not the actual control) in a DataGridViewCell cell.
Displays an editable ComboBox control in a DataGridViewCell cell when in edit mode.
Displays an editable DateTimePicker control in a DataGridViewCell cell when in edit mode.
Displays an image in a DataGridViewCell cell.
Displays a link widget in a DataGridViewCell cell.
Displays an editable MaskedTextBox control in a DataGridViewCell cell when in edit mode.
Displays an editable NumericUpDown control in a DataGridViewCell cell when in edit mode.
Displays an editable TextBox control in a DataGridViewCell cell when in edit mode.
Represents a column header in a DataGridView control.
Contains functionality common to row header cells and column header cells.
Represents a row header of a DataGridView control.