New to Telerik UI for WinForms? Start a free 30-day trial

Provides event arguments for the CellFormatting event

Definition

Namespace:Telerik.WinControls.Export

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class CellFormattingEventArgs : EventArgs

Inheritance: objectEventArgsCellFormattingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the CellFormattingEventArgs class.

C#
public CellFormattingEventArgs(int gridRowIndex, int gridColumnIndex, Type gridRowInfoType, GridViewCellInfo gridViewCellInfo, object cellSelection, ISpreadExportCellStyleInfo cellStyleInfo)
Parameters:gridRowIndexint

Index of the grid row.

gridColumnIndexint

Index of the grid column.

gridRowInfoTypeType

Type of the grid RowInfo.

gridViewCellInfoGridViewCellInfo

The grid view CellInfo.

cellSelectionobject

The cell in the workbook.

cellStyleInfoISpreadExportCellStyleInfo

The cell style, allowing to introduce appearance modification to the exported cells.

Properties

Get excel cell element for further formatting

C#
public object CellSelection { get; }

Get style element for further formatting

C#
public ISpreadExportCellStyleInfo CellStyleInfo { get; }

Get a reference to the source grid's cell.

C#
public GridViewCellInfo GridCellInfo { get; }

Get source grid's column index

C#
public int GridColumnIndex { get; }

Get source grid's row index

C#
public int GridRowIndex { get; }

Get source grid's row type

C#
public Type GridRowInfoType { get; }