BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
gridControl1.CutPaste.Copy
gridControl1.CutPaste.Paste
gridControl1.CutPaste.Cut
In a GridDataBoundGrid, the CutPaste object is a member of the gridDataBoundGrid1.Model.
>gridControl1.CutPaste.Copy
>gridControl1.CutPaste.Paste
>gridControl1.CutPaste.Cut
>
>In a GridDataBoundGrid, the CutPaste object is a member of the gridDataBoundGrid1.Model.
DataObject data = (DataObject) Clipboard.GetDataObject(); if(data.GetDataPresent(DataFormats.Text)) { string s = (string)data.GetData(DataFormats.Text); string[] rows = s.Split(new char[]{''''}); int numRows = rows.GetLength(0); if(numRows > 0 && rows[numRows - 1].Length == 0) numRows--; //remove extra empty row if present int numCols = 0; if(numRows > 0) { string[] cols = rows[0].Split(new char[]{''\t''}); numCols = cols.GetLength(0); } Console.WriteLine("{0} rows by {1} cols", numRows, numCols); }