Grid Background Image

Hi,I am trying to apply the image to whole the grid like, gridControl1.BackgroundImage = objBitmap.
But when I see in the PrintPreview it does not show the image in the background. please guide me regarding this issue.
i will be thankful to you.
regards,

3 Replies

HA haneefm Syncfusion Team May 9, 2007 02:59 PM UTC

Hi faheem,

In addition to setting the BackgroundImage, try setting

this.gridControl1.Properties.BackgroundColor = Color.Transparent;

to see if that will give you what you want.

Best regards,
Haneef


FR Faheem Rauf May 10, 2007 10:28 AM UTC

Hi Haneef , thanks for your reply, I tried your suggested solution but it is not working. Background image does not appear.

Regards


HA haneefm Syncfusion Team May 10, 2007 08:51 PM UTC

Hi Faheem,

You can set a Bitmap as the BackgroundImage property of the grid, and have it displayed as the background. But, this image will not scroll, and you would have to do additional work to get it to appear in printing.

To get the bitmap to scroll would require deriving your own cell control, and overiding the DrawBackground method, and draw the appropriate bitmap section in that method.

Best regards,
Haneef

Loader.
Up arrow icon