Andreas Myriounis
Andreas Myriounis

Reputation: 564

Simple Button Transparent Background on Xtragrid

i want to add a simple button on the view caption section or the group panel section of the xtragrid (see attached images). The problem is that i can't find a way to make the button's background transparent. I've tried almost everything on the devexpress forums (disable default style, make it flat, ultraflat, no borders e.t.c) but nothing worked. The image has transparency (it's from devexpress's default images).

enter image description here

enter image description here

Code I've tried:

btn.LookAndFeel.Style = Flat;
btn.LookAndFeel.UseDefaultLookAndFeel = false;
btn.Appearance.BackColor = Transparent;
btn.Appearance.BackColor2 = Color.Transparent;
btn.BorderStyle = BorderStyles.NoBorder;

Upvotes: 0

Views: 326

Answers (0)

Related Questions