C1FlexGrid copy and paste multi cell

Posted by: eploentham on 24 January 2019, 12:16 am EST

    • Post Options:
    • Link

    Posted 24 January 2019, 12:16 am EST - Updated 4 October 2022, 1:36 am EST

    i want to copy form another cell and paste multi cell

  • 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.

    prj_C1FlexGrid_MultiCopyPaste.zip

  • Posted 30 January 2019, 5:00 am EST

    thank you

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels