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
2265
Copy (and paste) with WinGrid
posted

I am using Infragistics 12.1 CLR4 on my Windows 7 64-bit in VS2010.

Silly question of the day... How can I copy (selected cell) from a grid?  It must be me.  Too much SharePoint during the day :(

Ctrl+C does not work.  And UltraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.Copy) does not work either.  I've looked at the samples and I am non the wiser.

All I've done is dropped the grid onto a form from the toolbox.

My grid is bound Windows.Forms.BindingSource which is set to a List(Of Person) which has an Id (Integer) and Name (String).

Help!

Thanks,

Andez

 

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Andez,

    Is the cell in edit mode? If it's edit mode and you see a blinking caret, then Ctrl+C will work.

    If the cell is not in edit mode, then you have to turn on the copy functionality to allow the copying of selected cells before Ctrl+C or the PerformAction method will do anything.


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridOverride ov = layout.Override;

                ov.AllowMultiCellOperations = AllowMultiCellOperation.Copy;
            }

Reply Children
No Data