Posted 24 January 2019, 12:16 am EST - Updated 4 October 2022, 1:36 am EST
C1FlexGrid copy and paste multi cell
Posted by: eploentham on 24 January 2019, 12:16 am EST
-
-
Posted 25 January 2019, 12:39 am EST
Hello,
As per my understanding, you want to copy the data of single cell and paste the data into multiple cells. You can override the “Ctrl +V” in the “KeyDown” event of the C1FlexGrid like below.
private void C1FlexGrid1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.V && e.Modifiers == Keys.Control) { C1.Win.C1FlexGrid.CellRange cr = c1FlexGrid1.Selection; cr.Data = Clipboard.GetText(); } }
Also, I have attached the sample for you. Please explain, if I am missing something.
Thanks.
-
Posted 30 January 2019, 5:00 am EST
thank you