Hi,
I'm using the grid in my app. I apply styling to it using StyleManager. In the isl file for the GridColumnHeader role I apply custom appearance. The isl file looks like this:
<style role="GridColumnHeader">
<states>
<state name="Normal">
<name>GridColumnHeader_Normal</name>
</state>
</states>
</style>
<resource name="GridColumnHeader_Normal" backColor="5, 5, 5, 5" etc />
How can I apply the same style for the UltraGridColumn (that column is the first one in rows and contains the name of the row)? I thought after appying a style I could do something like setting the column's CellAppearance to the grid's displayLayout.Override.HeaderAppearance, but the latter doesn't contain the values of the loaded style.
Thanks,
Vitaly
Hi Vru,
Could you be more specific? What exactly is wrong with the header that you want to change?
One thing you will probably have to do is is turned off themed drawing on the headers. This KB article might help: HOWTO:Change the Color of Column Headers in the WinGrid
Hi Mike,
i want some help here ...
my require ment is i want to display the grid with no gridlines and Header with no styles.header should similar to the normal data row.no gradients and no hilighted .for no grid lines i tried this way but i am not able to setup the header similar to the grid row.
My code
this.grid.DisplayLayout.Override.BorderStyleCell = UIElementBorderStyle.None;
this.grid.DisplayLayout.Override.HeaderStyle = HeaderStyle.Standard;
======
but header is not similar to normal data row...
how to setup the header similar to data row?
thanks,
Vru
Hi Vitaly,
No, the appearance in code will not contain the information you need. The appearance property on the column is not set by AppStylist, it gets resolved by the cell itself through a long chain of objects.
If yuo want to determine the actual appearance of an object, you can usually do this using a ResolveAppearance method, So I would see if the Column has a ResolveHeaderAppearance method. Or maybe column.Header.ResolveAppearance.