Skip to main content
All docs
V24.2

ASPxClientVerticalGridClipboardCellPastingEventArgs Class

Contains data for the ClipboardCellPasting event.

Declaration

declare class ASPxClientVerticalGridClipboardCellPastingEventArgs extends ASPxClientCancelEventArgs

Remarks

The following example illustrates how to modify data before pasting to the control in the ClipboardCellPasting event handler:

Web Forms:

<dx:ASPxVerticalGrid ID="VerticalGrid" runat="server" ...>
    <ClientSideEvents 
        ClipboardCellPasting="onClipboardCellPasting" />
    <SettingsEditing Mode="Batch">
        <BatchEditSettings EnableMultipleCellSelection="True" />
    </SettingsEditing>
</dx:ASPxVerticalGrid>
function onClipboardCellPasting(s, e) {
    if (e.cellInfo.row.fieldName == 'CategoryID') {
        // your code
        e.cancel = true;
    }
    else {
      e.newText += " copy"; 
    }
}

MVC:

@Html.DevExpress().VerticalGrid(settings => {
    settings.Name = "verticalGrid";
    settings.ClientSideEvents.CellSelectionChanging = "function (s, e) { 
        if (e.cellInfo.row.fieldName == 'CategoryID') {
            // your code
            e.cancel = true;
        }
        else {
          e.newText += " copy"; 
        }
    }"; 
    settings.Rows.Add("CategoryID");
    ...
}).Bind(Model).GetHtml()

Inheritance

ASPxClientEventArgs
ASPxClientCancelEventArgs
ASPxClientVerticalGridClipboardCellPastingEventArgs
See Also