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
45
Copy Paste Data From MS EXCEL to WinGrid
posted

Hey,

    I want to copy data from an excel sheet to my Grid using CTRL-C and CTRL - V. 

Please anybody tell me the complete method to do so. I have read the formums and blogs but still unable to copy-paste.

As people are telling to use:  e.Layout.Override.AllowMultiCellOperations = AllowMultiCellOperation.All

this line still does not helped me.

 

Regards

Mudassar     

  • 469350
    Verified Answer
    Offline posted

    Hi Mudassar,

        If you set AllowMultiCellOperation in the grid to all, the grid should accept pasting date from Excel. There's nothing else you need to do. But of course, the grid must be editable and there may be certain restrictions on making sure the selection types match up.

        What exactly is the problem you are having? When you paste in the grid, does anything happen? Are you getting an error?