menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BeforeCellPasteEventArgs<T> - API Reference

    Show / Hide Table of Contents

    Class BeforeCellPasteEventArgs<T>

    Provides information about the BeforeCellPaste event.

    Inheritance
    System.Object
    GridEventBaseArgs
    BeforeCellPasteEventArgs<T>
    BeforeCellPasteEventArgs<T>
    Inherited Members
    GridEventBaseArgs.PreventRender
    Namespace: Syncfusion.Blazor.Grids
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class BeforeCellPasteEventArgs<T> : GridEventBaseArgs
    Type Parameters
    Name Description
    T

    TValue of grid component.

    Constructors

    BeforeCellPasteEventArgs()

    Declaration
    public BeforeCellPasteEventArgs()

    Properties

    Cancel

    Gets or sets a value indicating whether to cancel the paste action of the cell in grid.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false. If the Cancel property is set to true, then cell paste action will be cancelled.

    CellValue

    Gets or sets the value being pasted in the cell. You can modify the value using BeforeCellPaste event.

    Declaration
    public string CellValue { get; set; }
    Property Value
    Type Description
    System.String

    The string value being pasted in the cell. The default value is null.

    ColumnIndex

    Gets the column index of the cell associated with a paste action.

    Declaration
    public int ColumnIndex { get; }
    Property Value
    Type Description
    System.Int32

    An integer value that represents the column index of the cell associated with the paste action.

    ColumnName

    Gets the Field name associated with the cell being pasted.

    Declaration
    public string ColumnName { get; }
    Property Value
    Type Description
    System.String

    The name of the field associated with the cell being pasted.

    Data

    Gets the selected row data of the cell associated with a paste action.

    Declaration
    public T Data { get; }
    Property Value
    Type Description
    T

    The data of the selected row.

    RowIndex

    Gets the row index of the cell associated with a paste action.

    Declaration
    public int RowIndex { get; }
    Property Value
    Type Description
    System.Int32

    The index of the row associated with the paste action.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved