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 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.
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