[Telerik] 그리드 셀s 복사/붙혀넣기

2020. 6. 26. 16:12Development/WPF

public class JofGridView : RadGridView

CopyPaste_RadGridView_WPF_AR_157.zip
6.58MB

{

CopyingCellClipboardContent += JofGridView_CopyingCellClipboardContent;

this.Pasting += JofGridView_Pasting;

this.Pasted += JofGridView_Pasted;

this.ClipboardCopyMode = GridViewClipboardCopyMode.Cells;

this.ClipboardPasteMode = GridViewClipboardPasteMode.AllSelectedCells;

this.SelectionMode = System.Windows.Controls.SelectionMode.Extended;

this.SelectionUnit = GridViewSelectionUnit.Cell;

}

private void JofGridView_Pasted(object sender, Telerik.Windows.RadRoutedEventArgs e)

{

this.MakeGridColumnsReadable();

}

private void JofGridView_Pasting(object sender, GridViewClipboardEventArgs e)

{

this.MakeGridColumnsReadonly();

}

private void JofGridView_CopyingCellClipboardContent(object sender, GridViewCellClipboardEventArgs e)

{

if (e.Value == null || e.Value.ToString() == "")

{

e.Value = " ";

}

}

'Development > WPF' 카테고리의 다른 글

[Telerik] SpreadSheet workSheet handling  (0) 2020.06.30
[Telerik] SpreadSheet Cell 서식  (0) 2020.06.29
[RPA] WPF CONTROL 접근  (0) 2020.06.09
[MVVM] View Loading  (0) 2020.06.09
[Telerik] GridView row foregroud color  (0) 2020.06.02