Hello!How can i change the GridCell Properties Border Style at runtime when my .isl File have set the Border Style not to DEFAULT? (i used Border Style: None) so the following code does not take any effects:this.ultraGridZuteilungen.DisplayLayout.Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Solid;or ...this.ultraGridZuteilungen.DisplayLayout.Bands[0].Override.BorderStyleCell = Infragistics.Win.UIElementBorderStyle.Solid;
Is there a way to change it at runtime?
So easy ;) perfekt solution - thanks!
Hello myGil, You can create new StyleSet that derive your original and modify there the BackColor of the UltraTextEditor to one you need. And runtime you can just apply the new style set specifically to that control instance using the StyleSetName property of the control:http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/?page=Infragistics2.Win.v10.1~Infragistics.Win.UltraControlBase~StyleSetName.htmlI hope make the things clear.Sincerely,DimiDeveloper Support Engineer, MCPDInfragistics, Inc.
I have never used draw filters bevor - so i dont understand the answer at the moment!
The same problems I have in common the background color: (see PDF File)Thanks for answer! myGil
Hi,
I just wanted to know if you were able to change the Border Style at runtime based on the Mike’s suggestions or you still need help? Just let me know.
Thank you.
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
AppStylist will override any property settings in the grid that you apply in your application. It has to, otherwise, AppStylist wouldn't really work.
In general, this only affects control or higher-level settings. In the case of the grid, that means you can still apply appearances to individual cells or columns, but not to all columns or all cells. But since there's no BorderStyle property on the column or the cell, that doesn't help you here.
So the only way to do this is to either modify the isl file or else use a DrawFilter to draw the borders yourself.