项目作者: SyncfusionExamples

项目描述 :
This example illustrates how to copy active cell value alone when row selection in wpf and uwp datagrid
高级语言: C#
项目地址: git://github.com/SyncfusionExamples/how-to-copy-active-cell-value-alone-when-row-selection-in-wpf-and-uwp-datagrid.git


How to copy active cell value alone when row selection in WPF DataGrid (SfDataGrid)?

This example illustrates how to copy active cell value alone when row selection in WPF DataGrid (SfDataGrid).

All the record contents will be copied to the clioboard by default when the SelectionUnit is set as Row in WPF DataGrid (SfDataGrid). You can copy the active cell value alone by using the SfDataGrid.GridCopyCellContent event. You can remove tab character from the copied data by overriding the CopyCell method in GridCutCopyPaste class.

KB article - How to copy active cell value alone when row selection in WPF DataGrid (SfDataGrid)?