Link to home
Start Free TrialLog in
Avatar of winterhowl
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.LinearGradientBrush(gridBounds, this.BackgroundColor, this.BackgroundColor2, gradientMode), gridBounds);

            if (backgroundImage != null)
            { graphics.DrawImageUnscaled(backgroundImage, gridBounds); }
        }


Avatar of Shanmuga Sundaram D
Shanmuga Sundaram D
Flag of India image

Avatar of winterhowl
winterhowl

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
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin