We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Background image hidden by cells

Thread ID:

Created:

Updated:

Platform:

Replies:

121838 Jan 29,2016 09:59 PM UTC Feb 2,2016 01:09 PM UTC WinForms 3
loading
Tags: GridControl
Roland Brooks
Asked On January 29, 2016 09:59 PM UTC

I'm trying to display a background image that is displayed when there are no rows on the grid, but the image is hidden behind the rows and columns.

Currently the image shows through the cells with the BackgroundImage set, and TransparentBackground = true.

Solai A L [Syncfusion]
Replied On February 1, 2016 08:57 AM UTC

Hi Roland,

Thank you for contacting Syncfusion Support.

Please refer to the following sample. In the below sample, we don’t use the transparent background property and the row and column count is set to 0. Still, the background image is applied to the grid properly. If the issue still exist, replicate the scenario in the following and update us.

Sample:
 http://www.syncfusion.com/downloads/support/forum/121838/ze/CS-154685599


Thanks ,
AL.Solai.


Roland Brooks
Replied On February 1, 2016 03:32 PM UTC

The example was not correct, however it pointed me in the right direction. 
I found a solution that involves setting the background image of the control behind the grid (in this case the form), and then setting the following properties.

            gridControl1.SupportsTransparentBackColor = true;
            gridControl1.Properties.BackgroundColor = Color.Transparent;
            gridControl1.BackColor = Color.FromArgb(0, SystemColors.Window);

Now the cells are opaque, but the remainder of the control displays the background image.



Solai A L [Syncfusion]
Replied On February 2, 2016 01:09 PM UTC

Hi Roland,

Thank you for your update.

We are glad to know that your issue has been resolved. Please let us know if you have any other concerns.

Thanks,
Solai A L.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;