Hi all,
I stumbled into some weird behavior with the UltraGrid and an UltraPanel which is positioned above the grid.Here are the steps to reproduce this behavior:
- create a new Form- set forms Backgroundcolor to red- place UltraGrid on form (doesn't need to be bound)- place an UltraPanel on the form- bring UltraPanel to front- position UltraPanel right over (above) UltraGrid- set UltraPanels Appearance-Backgroundcolor to transparent- set UltraGrids Appearance-Backgroundcolor to white
I expected that the backgroundcolor of the UltraGrid (White) would show up in the UltraPanel due to UltraPanels transparency.
Unfortunately the UltraPanel shows the background of the form (red)... just like it should be without having the UltraGrid.
Any ideas regarding this? Am I missing something?
Any help is kindly appreciated,best regardsAndy
Hi Andy,
This has nothing to do with the grid. You will get the same results if you use two Panel (regular panel, not UltraPanel) controls.
Transparency in DotNet simply does not support overlapping controls. The Transparent control tells it's parent control to paint into it's background area and then the control paints itself. So any control that it overlaps, but is not in that control's parent chain, will not draw into the transparent control.
Thanks a lot Mike for your explanantion ;)