Back to Devexpress

TableView.CopyCellsToClipboard(Int32, GridColumn, Int32, GridColumn) Method

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-dot-copycellstoclipboard-x28-system-dot-int32-devexpress-dot-xpf-dot-grid-dot-gridcolumn-system-dot-int32-devexpress-dot-xpf-dot-grid-dot-gridcolumn-x29.md

latest3.4 KB
Original Source

TableView.CopyCellsToClipboard(Int32, GridColumn, Int32, GridColumn) Method

Copies values displayed within the specified block of cells to the clipboard.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public void CopyCellsToClipboard(
    int startRowHandle,
    GridColumn startColumn,
    int endRowHandle,
    GridColumn endColumn
)
vb
Public Sub CopyCellsToClipboard(
    startRowHandle As Integer,
    startColumn As GridColumn,
    endRowHandle As Integer,
    endColumn As GridColumn
)

Parameters

NameTypeDescription
startRowHandleInt32

An integer value that specifies the handle of the row containing the cell that identifies the starting point.

| | startColumn | GridColumn |

A GridColumn object that is the column containing the cell that identifies the starting point.

| | endRowHandle | Int32 |

An integer value that specifies the handle of the row containing the cell that identifies the end point.

| | endColumn | GridColumn |

A GridColumn object that is the column containing the cell that identifies the end point.

|

Remarks

The CopyCellsToClipboard method allows you to copy display values of multiple cells (a block of cells) to the clipboard. When you group GridControl (and don’t expand groups), there are no visible cells in the GridControl. As a result, there are no values that can be obtained and copied. If you need to copy values even if your GridControl is grouped and there are no expanded groups, use methods described in the following help topic: Copy Operations - Copy in Code. For example, you can use the GridControl.CopyRangeToClipboard method.

To copy values displayed within selected cells, use the TableView.CopySelectedCellsToClipboard method.

To learn more, see Clipboard Management.

See Also

CopySelectedCellsToClipboard()

CopyRowsToClipboard(IEnumerable<Int32>)

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace