Is there a way to change the image/icon for the row expanders ( + , - ) to something else?
Thanks,
Ron
Hi Ron,
This is decided by the 'ResolutionOrder' on the 'Properties' of the control. It could be set to 'ControlThenApplication', 'ApplicationThenControl' and so on:
http://help.infragistics.com/NetAdvantage/WinForms/2012.2/CLR4.0/?page=Infragistics4.Win.v12.2~Infragistics.Win.AppStyling.Runtime.ComponentStyleSettings~ResolutionOrder.html.
When hovering the control with the cursor from the AppStylist, please press 'C' on your keyboard and you should see the 'Properties' screen below.
Please feel free to let me know if a question about our tool set comes up on your mind.
Well I achieved what I wanted by removing the AppStyle column header properties, so my code would work for the column headers. I don't understand how you know what takes precedence, the AppStyle or code? But I feel like I'm on the right track for now.
Well now I think we are leaning to an application wide grid style. I sort of have it working where I created an AppStyle, and apply it in our application startup. I am having 1 issue
with 1 grid where we apply different colors, font, etc., to headers, rows, etc. based on a user saved theme. The grid has column groups where the group header is a different
appearance than its columns' header appearance. The group header is overriding the AppStyle setting, but I can't get the column headers under the group to display the appearance
settings in my code. It seems to keep the AppStyle setting. This worked before I switched to the AppSylist.
Hi BE,
I'm having a hard time following exactly what you want. You started off saying you just wanted to change the expansion indicators. But now it seems like you are saying you want to apply an isl to only a single control.
The expansion indicators of the WinGrid cannot be changed via a property. They can be changed via AppStylist, though. So if you just want to change the expansion indicators and nothing else, you would need to create an isl file that has no other styling information in it, other than the expansion indicators.
Normally, and isl file will apply to the entire application. To limit it to a single control (or controls) you can use the StyleLibraryName property.
So in this case, what you would do is go the grid in your application that you want to change. Set it's StyleLibraryName to a string. The string you choose is entirely up to you - it's just an arbitrary name you make up.
Then what you would do is call the StyleManager.Load method. Use the overload that takes two parameters, a filename and a StyleSetName. the Filename is the file name of your isl file. The StyleSetName is the arbitrary string you assigned to the StyleSetName property of the grid. By specifying a StyleSetName to the Load method, you are telling AppStylist to only apply the isl file styling to controls with that StyleSetName.
I still can't follow this. I have 1 ultragrid that I think I want to use Windows7.isl. I'm looking for a grid property to set but can't seem to see one.