Skip to main content
All docs
V23.2

ASPxClientVerticalGridClipboardCellPastingEventArgs.oldValue Property

Gets the old value of the processed cell.

Declaration

oldValue: any

Property Value

Type Description
any

The value of the cell.

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.newValue = e.oldValue;
    }
}

MVC:

@Html.DevExpress().VerticalGrid(settings => {
    settings.Name = "verticalGrid";
    settings.ClientSideEvents.CellSelectionChanging = "function (s, e) { 
        if (e.cellInfo.row.fieldName == 'CategoryID') {
            // your code
            e.newValue = e.oldValue;
        }
    }"; 
    settings.Rows.Add("CategoryID");
    ...
}).Bind(Model).GetHtml()
See Also