Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
11915 | Mar 18,2004 12:38 AM UTC | Mar 18,2004 11:00 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
//subscribe to the events
this.grid.Model.ClipboardPasted += new GridCutPasteEventHandler(grid_ClipboardPasted);
this.grid.ClipboardCut += new GridCutPasteEventHandler(grid_ClipboardCut);
private GridRangeInfoList cutRangeList = null; private void grid_ClipboardCut(object sender, Syncfusion.Windows.Forms.Grid.GridCutPasteEventArgs e) { GridRangeInfoList rangeList = this.grid.Selections.Ranges.Clone(); if(this.grid.CutPaste.CopyTextToClipboard(rangeList)) { cutRangeList = rangeList.Clone(); e.Handled = true; e.Result = true; } } private void grid_ClipboardPasted(object sender, Syncfusion.Windows.Forms.Grid.GridCutPasteEventArgs e) { if(cutRangeList != null && cutRangeList.Count > 0) { this.grid.ClearCells(cutRangeList, false); } cutRangeList = null; }
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.