Class DataGridCellExcelExportingEventArgs
Provides data for the cell exporting event.
Inheritance
Namespace: Syncfusion.Maui.DataGrid.Exporting
Assembly: Syncfusion.Maui.DataGridExport.dll
Syntax
public sealed class DataGridCellExcelExportingEventArgs : EventArgs
Constructors
DataGridCellExcelExportingEventArgs(RecordEntry, IRange, ExportCellType, Object, Object, ViewDefinition, Int32, String, IPropertyAccessProvider, Object)
Initializes a new instance of the DataGridCellExcelExportingEventArgs class.
Declaration
public DataGridCellExcelExportingEventArgs(RecordEntry record, IRange exportRange, ExportCellType exportCellType, object cellValue, object exportNodeEntry, ViewDefinition detailsViewDefinition, int level, string columnName, IPropertyAccessProvider propertyAccessProvider, object rowData = null)
Parameters
Type | Name | Description |
---|---|---|
RecordEntry | record | The record entry to be exported. |
IRange | exportRange | The exporting cell range. |
ExportCellType | exportCellType | The exporting cell type. |
System.Object | cellValue | The cell value to be exported. |
System.Object | exportNodeEntry | Gets the node entry for the cell being exported. |
ViewDefinition | detailsViewDefinition | Gets a value that specifies the DetailsViewDefinition. |
System.Int32 | level | Gets a value that specifies the level of the currently exporting DataGrid |
System.String | columnName | The column name of the cell to be exported. |
IPropertyAccessProvider | propertyAccessProvider | Gets the property access provider for the cell being exported. |
System.Object | rowData | The underlying row data of the cell. |
DataGridCellExcelExportingEventArgs(IRange, ExportCellType, Object, Object, ViewDefinition, Int32, String, IPropertyAccessProvider)
Initializes a new instance of the DataGridCellExcelExportingEventArgs class.
Declaration
public DataGridCellExcelExportingEventArgs(IRange exportRange, ExportCellType exportCellType, object cellValue, object exportNodeEntry, ViewDefinition detailsViewDefinition, int level, string columnName, IPropertyAccessProvider propertyAccessProvider)
Parameters
Type | Name | Description |
---|---|---|
IRange | exportRange | The exporting cell range. |
ExportCellType | exportCellType | The exporting cell type. |
System.Object | cellValue | The cell value to be exported. |
System.Object | exportNodeEntry | Gets the node entry for the cell being exported. |
ViewDefinition | detailsViewDefinition | Gets a value that specifies the DetailsViewDefinition. |
System.Int32 | level | Gets a value that specifies the level of the currently exporting DataGrid |
System.String | columnName | The column name of the cell to be exported. |
IPropertyAccessProvider | propertyAccessProvider | Gets the property access provider for the cell being exported. |
Properties
CellType
Gets the exporting cell type
Declaration
public ExportCellType CellType { get; }
Property Value
Type |
---|
ExportCellType |
CellValue
Gets or sets the exporting cell value.
Declaration
public object CellValue { get; set; }
Property Value
Type |
---|
System.Object |
ColumnName
Gets the column name of the exporting cell.
Declaration
public string ColumnName { get; }
Property Value
Type |
---|
System.String |
DetailsViewDefinition
Gets a value that specifies the DetailsViewDefinition.
Declaration
public ViewDefinition DetailsViewDefinition { get; }
Property Value
Type |
---|
ViewDefinition |
Handled
Gets or sets a value indicating whether cell exporting is handled.
Declaration
public bool Handled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean value indicating whether cell exporting is handled. |
Level
Gets a value that specifies the level of the currently exporting DataGrid. It is 0 for Parent dataGrid, 1 for First Level Nested DataGrid, and so on.
Declaration
public int Level { get; }
Property Value
Type |
---|
System.Int32 |
NodeEntry
Gets the node entry for the cell being exported.
Declaration
public object NodeEntry { get; }
Property Value
Type |
---|
System.Object |
PropertyAccessProvider
Gets the property access provider for the cell being exported.
Declaration
public IPropertyAccessProvider PropertyAccessProvider { get; }
Property Value
Type |
---|
IPropertyAccessProvider |
Range
Gets the exporting cell range.
Declaration
public IRange Range { get; }
Property Value
Type |
---|
IRange |
Record
Gets the record of the exporting cell.
Declaration
public RecordEntry Record { get; }
Property Value
Type |
---|
RecordEntry |
RowData
Gets sets the row data of the exporting cell.
Declaration
public object RowData { get; }
Property Value
Type |
---|
System.Object |