winterhowl
asked on
How can I add a watermark behind the cells of a datagridview?
I tried customizing the backgroundimage property, but it doesn't overlay the image onto the cells themselves.
protected override void PaintBackground(Graphics graphics, Rectangle clipBounds, Rectangle gridBounds)
{
graphics.FillRectangle(new System.Drawing.Drawing2D.L inearGradi entBrush(g ridBounds, this.BackgroundColor, this.BackgroundColor2, gradientMode), gridBounds);
if (backgroundImage != null)
{ graphics.DrawImageUnscaled (backgroun dImage, gridBounds); }
}
protected override void PaintBackground(Graphics graphics, Rectangle clipBounds, Rectangle gridBounds)
{
graphics.FillRectangle(new
if (backgroundImage != null)
{ graphics.DrawImageUnscaled
}
ASKER
shasunder: I have seen both of those, but they don't answer my needs. I need an image to sit behind the cells themselves. And not just individual cells, but rather across all of them. One image that covers all visible cells.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin
http://forums.asp.net/p/194343/333892.aspx#333892
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1119467&SiteID=1