It is possible to achieve the drag and drop functionality from Outlook to RadGridView using the OLE drag-and-drop functionality. Here is a sample code snippet, demonstrating dragging an attachment from Outlook and dropping it to RadGridView. As a result a new row in the grid with the file name is inserted:
foreach (Microsoft.Office.Interop.Outlook.Attachment attachment in mail.Attachments)
{
if (draggedFileName.Contains(attachment.FileName))
{
this.radGridView1.Rows.Add(attachment.FileName);
}
}
}
}
}
}
}
I would like to note that this is just a sample implementation and it may not cover all possible cases. Feel free to modify it on a way, which suits your requirement best. I think that "C# WinForms: Identify type of drag-drop action event" stackoverflow thread is useful about this topic.
I hope this information helps. Should you have further questions, I would be glad to help.
Regards,
Desislava
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.