Thanks for your answer.
When i bind my grid, i'm making it with ImapMessageInfo.
So in my RowBound event i'm not getting a MailMessage object.
Please find below my snippet code :
protected void grdMailList_RowBound(object sender, GridViewRowEventArgs e)
if (e.Row.RowType == DataControlRowType.DataRow)
ImapMessageInfo objMessage = (ImapMessageInfo)e.Row.DataItem;
if (objMessage.IsRead == true)
Image imgMailType = (Image)e.Row.Cells.FindControl("imgMailType");
imgMailType.ImageUrl = "~/App_Themes/Images/Email_Read.gif";
e.Row.Font.Bold = true;
How can do to make your solution above work in my code without reading the entire message because it will take a lot of time to fill the grid?
One more question please : how can i display a column with an icon (paperclip) to indicates to the user that a mail contain an attachment?
Thanks in advance for your answer