adding Buttons to Columns in Datagride view
- by kasunmit
HiHi,
I wrote C# application for import unread e-mails from outlook 2007, I could import sender name, sender mail address,subject and body to data grid view as following
foreach (Microsoft.Office.Interop.Outlook._MailItem mailItem in fldEmails.Items)
{
if (mailItem.UnRead)
{
UnreadEmails mail = new UnreadEmails();
// mail.AttachmentContent = (mailItem.UnRead == false) ? string.Empty : mailItem.Attachments.Session.OpenSharedItem;
foreach (Microsoft.Office.Interop.Outlook.Attachment Atmt in mailItem.Attachments)
{
mail.AttachmentContent = (mailItem.UnRead == false) ? string.Empty : Atmt.DisplayName;
}
emails.Add(mail);
}
}
UnreadEmails is a separte class. but couldn't find a way to import attachments (word pdf ppt excel) because i need it for my filter pls help me about it
but i could import inly name of the attachment but i need to import attachment content (word, pdf , ppt .. atc. ) to this data grid pls tell how i can do it ... with the code