Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
685
Copy/Paste WinGrid Rows
posted

I'd like to be able to copy highlighted rows in wingrid and paste them into the same grid as new rows.  I've seen other forum topics on this, but they're all very old and from what I can see they don't always work.  What's the current suggested method for doing this?

Parents
  • 7535
    Offline posted

    Hello Sean,


    Thank you for posting. The grid supports copy and pastes within a cell by default. Since you want to copy and paste rows or ranges of cells, then you need to set the AllowMultiCellOperation property.


    Something like this:

    private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
    {
        this.ultraGrid1.DisplayLayout.Override.AllowMultiCellOperations = Infragistics.Win.UltraWinGrid.AllowMultiCellOperation.All;
    }


    Attached a sample application for the reference. Let me know if you have any question.

    Regards,
    Divya

    CopyPasteUltraGrid.zip

Reply Children