Click here to Skip to main content
15,886,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All...

I am developing an application .net 2.0 (windows Forms - MDI Application.) I need to display mails in a DataGridView with Image (Read and Unread Image). I have used a DataGridViewImage column and i trying to put the image in that column in Cell_Painting event. But after displaying the image the grid is behaving weird. I can see the frame below the grid,(tranparent). When i move the Form, it will become perfect. Also am not able to view ant message box which comes over the window.

Almost 20 mails will come in one second, the grid is getting hanged while the mails are coming. Please anyonehelp me..

I tried with Invalidate() and Refresh(). But nothg works for me....
In cellpainting event of the grid............

If (.ColumnIndex = 1 )
{
e.value=Image.FromFile(f:\Read1.bmp;)
}

}
reply
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900