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
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; }
Hi Mike,
Thanks for the reply.
Yes that has now started to copy. And I see you can use bitwise combinations of the enum/flag, i.e. Copy Or Paste.
Excellent