DataGridViewCellFormattingEventArgs
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Provides data for the CellFormatting event of a DataGridView.
- C#
- VB.NET
public class DataGridViewCellFormattingEventArgs : ConvertEventArgs
Public Class DataGridViewCellFormattingEventArgs
Inherits ConvertEventArgs
Constructors
DataGridViewCellFormattingEventArgs(columnIndex, rowIndex, value, desiredType, cellStyle)
Initializes a new instance of the DataGridViewCellFormattingEventArgs class.
| Name | Type | Description |
|---|---|---|
| columnIndex | Int32 | The column index of the cell that caused the event. |
| rowIndex | Int32 | The row index of the cell that caused the event. |
| value | Object | The cell's contents. |
| desiredType | Type | The type to convert value to. |
| cellStyle | DataGridViewCellStyle | The style of the cell that caused the event. |
Throws:
- ArgumentOutOfRangeException columnIndex is less than -1 or rowIndex is less than -1.
Properties
CellStyle
DataGridViewCellStyle: Returns or sets the style of the cell that is being formatted.
ColumnIndex
Int32: Returns the column index of the cell that is being formatted.
FormattingApplied
Boolean: Returns or sets whether the cell value has been successfully formatted.
RowIndex
Int32: Returns the row index of the cell that is being formatted.
Used By
| Name | Description |
|---|---|
| DataGridViewCellFormattingEventHandler | Represents the method that will handle the CellFormatting event of a DataGridView. |