I have an UltraGrid and I have it set to use AppStyling (I also have a Form Manager on the form containing the grid, if that makes a difference). There is no border around the grid. I want a solid black border and set the border property as such. When I set AppStyling to false the border shows up but the grid is not style'd. When I set AppStyling to true, the grid is style'd properly but does not have a border. I want to use AppStyling, but I also want to have the solid black border. I'm sure I am missing something - any idea what?
Thanks!
Hello Elondon,
When you are using AppStyle in your application, please note that the style has priority over appearance properties of the control. It means that if you modify the border`s appearance in to your code, this settings will be ovride from the AppStyle. So if you want to have the solid balck borders you should :
Option 1. Set property UseAppStyling = false; By this way the AppStyle will be NOT apply to the control and you will be able to set desired border`s properties.
Option 2. Create a new AppStyle (or modify your current AppStyle) in the part of UltraGrid`s border appearance. By this way when you apply your style, you will achieve desired look and feel (without set properties in design time or through code) More information about this approach you could find in oour online documentation:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2011.2/CLR2.0/html/Win_Loading_Multiple_Style_Libraries.html
Option 3: Using a DrawFilter to modify the border`s appearance and priority - by DrawPhase.
Please let me know if you have any questions.
Regards