K
kwarnke
Does anyone know how to give the datagrid a background image? I'm interested
in this because when I set its Dock property to Fill, if the columns aren't
wide enough or there aren't enough rows, it's BackColor shows through. I'd
like to replace this with an image.
I tried setting the background image for the form and setting the grid's
BackColor to:
grid.BackColor = Color.FromArgb(0, grid.BackColor);
But the runtime balks and says the data grid doesn't support a transparent
back color.
I also tried using the backcolor of Web.Transparent. This does the job, but
I can't for the life of me get it to repaint correctly. If I start my app,
put another app in front of it, then go back to my app, the background looks
like the preivously displayed app (it just doesn't repaint the background
image). The same thing happens if I filter the data in the grid - it looks
all screwed up.
Any ideas? Please post to newsgroup.
Thanks!
- Kevin
in this because when I set its Dock property to Fill, if the columns aren't
wide enough or there aren't enough rows, it's BackColor shows through. I'd
like to replace this with an image.
I tried setting the background image for the form and setting the grid's
BackColor to:
grid.BackColor = Color.FromArgb(0, grid.BackColor);
But the runtime balks and says the data grid doesn't support a transparent
back color.
I also tried using the backcolor of Web.Transparent. This does the job, but
I can't for the life of me get it to repaint correctly. If I start my app,
put another app in front of it, then go back to my app, the background looks
like the preivously displayed app (it just doesn't repaint the background
image). The same thing happens if I filter the data in the grid - it looks
all screwed up.
Any ideas? Please post to newsgroup.
Thanks!
- Kevin