How to change the grid's border in Application Styling? Can you provide guidance how to get there? I found the way to change many properties but not this one. Thanks.
Which border do you intend to change? The border for the entire grid can be changed by altering the GridControlArea's border style property.
Base -> ControlArea -> GridControlAreaBase -> GridControlArea.
PERFECTO!!!! That's what I was looking for. Thank you so much my friend.
My pleasure. :)
How can I set programatically. My .isl file contains
<style role="GridControlArea"><states><state name="Normal" backColor="245, 250, 250" borderColor="195, 195, 195" backGradientStyle="None" backHatchStyle="None" /></states></style>
But for some reason, I dont want to use isl file. How can I set the same thing with the UltraGrid Control.
I didn't found any ultaGrid.GridControlArea or anything which deals with the scenario.
Can you please help me on this.
Hi,
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridBand band = layout.Bands[0]; UltraGridOverride ov = layout.Override; layout.BorderStyle = UIElementBorderStyle.Solid; layout.Appearance.BorderColor = Color.Red; }
There's no individual property for the borders of the grid control as a whole. The BorderColor I applied here will apply to all borders in the grid. So if you don't want the cell, header, etc. border to pick up the same color, you will need to override those appearances on the sub-objects.So you would probably want to do this:
layout.Override.RowAppearance.BorderColor = Color.Black; layout.Override.CellAppearance.BorderColor = Color.Black; layout.Override.HeaderAppearance.BorderColor = Color.Black;
You have a couple of options.
1) You can set the individual appearances on each tool.
2) You can use AppStylist to style your whole application. Here's a link to get you started: http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.3/CLR2.0/html/Win_Styling_Your_Application2.html
Cool.This works fine. But how about ToolbarManager? my Toolbarmanager hast toolbar1 and toolbar2.
Toolbar1 contains 5 textboxes and toolbar2 has 3 textboxes and 1 dropdown.
I need to set the common appearnce to textboxes and diffrent for dropdown. How do I acheive this. I dont see any generic attribute which can set common appearance of Textboxes or some othe controls. Do I need to make it individual appearnce setting? Can you please help me on this.