Skip to main content
Version: 4.1

DataGridViewCellFormattingEventArgs

Namespace: Wisej.Web

Assembly: Wisej.Framework (4.1.0.0)

Provides data for the CellFormatting event of a DataGridView.

public class DataGridViewCellFormattingEventArgs : ConvertEventArgs

Constructors

Instance member DataGridViewCellFormattingEventArgs(columnIndex, rowIndex, value, desiredType, cellStyle)

Initializes a new instance of the DataGridViewCellFormattingEventArgs class.

NameTypeDescription
columnIndexInt32The column index of the cell that caused the event.
rowIndexInt32The row index of the cell that caused the event.
valueObjectThe cell's contents.
desiredTypeTypeThe type to convert value to.
cellStyleDataGridViewCellStyleThe style of the cell that caused the event.

Throws:

Properties

Instance member CellStyle

DataGridViewCellStyle: Returns or sets the style of the cell that is being formatted.

Instance member ColumnIndex

Int32: Returns the column index of the cell that is being formatted.

Instance member FormattingApplied

Boolean: Returns or sets whether the cell value has been successfully formatted.

Instance member RowIndex

Int32: Returns the row index of the cell that is being formatted.

Used By

NameDescription
DataGridViewCellFormattingEventHandlerRepresents the method that will handle the CellFormatting event of a DataGridView.