The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
I am having some trouble using this method. I am trying to copy the entire contents of a GridControl derived grid, but nothing is ending up in the clipboard, and the method returns false. Here is my code. Any idea why subsequent calls to Clipboard.HasText() would return empty?
/// /// This is just a convenience for client code. Just copies the entire grid to the clipboard. /// public void CopyGridToClipboard() { GridRangeInfoList list = new GridRangeInfoList(); list.Add(GridRangeInfo.Table()); bool b = CutPaste.CopyTextToClipboard(list); }
ADAdministrator Syncfusion Team March 22, 2007 05:03 PM UTC
Hi Aaron,
One way you can do this by using the GridRangeInfo.Cells method in a grid. Please try this code and let me know if this helps.
public void CopyGridToClipboard() { GridRangeInfoList list = new GridRangeInfoList(); list.Add(GridRangeInfo.Cells(0,0, Model.RowCount, Model.ColCount)); bool b = CutPaste.CopyTextToClipboard(list); }