Articles in this section

How to set transparent backcolor for WinForms GridControl?

The GridControl supports the TransparentBackground property and BackColor property to set the transparent background color of the grid.


For example, you can set the transparent BackColor of GridControl with the following code,

//set up the transparent background
gridControl1.TransparentBackground = true;
gridControl1.SupportsTransparentBackColor = true;
 
//set the color for the transparent background
gridControl1.Properties.BackgroundColor = Color.FromArgb(0, 1, 1, 1);
gridControl1.BackColor = Color.FromArgb(0,SystemColors.Window);
'set up the transparent background
gridControl1.TransparentBackground = True
gridControl1.SupportsTransparentBackColor = True
 
'set the color for the transparent background
gridControl1.Properties.BackgroundColor = Color.FromArgb(0, 1, 1, 1)
gridControl1.BackColor = Color.FromArgb(0,SystemColors.Window) 

After applying the transparent properties, the grid is shown below,

Applied the transparent backcolor to the grid


Samples:

C#: Transparent_color

VB: Transparent_color

 

Conclusion

I hope you enjoyed learning about how to set a transparent backcolor for the WinForms GridControl.


You can refer to our WinForms GridControl feature tour page to know about its other groundbreaking feature representations and WinForms GridControl documentation, and how to quickly get started for configuration specifications.


For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.


If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied