In a XamWebGrid on Cell level (CellControlAttached event) im trying to change a cells style "in codebehind".
doing :
------------
Syle s = new Style(typeof(CellControl));
s.Setters.Add(
new Setter(CellControl.FontWeightProperty, FontWeights.Bold));
e.Cell.Style = s;
--------------
- works fine.
Question : How come doing :
new Setter(CellControl.HorizontalContentAlignmentProperty, HorizontalAlignment.Right));
-before applying the style, does not work ?
Hi,
The HorizontalContentAlignment and VerticalContentAlignment properties are actually dictated by the Column. So, no matter what you set the property to be on an individual cell, it will go back to what the column dictates.
Column.HorizontalContentAlignment, Column.VerticalContentAlignment.
-SteveZ
Does this mean it is not possible to set different alignment for the content on different rows in the same column in XamWebGrid ?
In general we have quite high demands for customization of "look and feel" all the way down to Cell level in the app we are creating. I have earlier asked about FormatString on a cell level and gotten a reply that this is not supported on a lower level then Column, and now these properties are not supported on a lower level then column either ?
- Can you please comment on this with respect to what we can expect from coming versions of this grid component when it comes to freedom to style on Column, Row and Cell level. (Including mentioned FormatString, and HorizontalContentAlignment, VerticalContentAlignment, etc etc )
- Can you also comment on the plans for implementing a cell merge function. ( which we also need badly)
Having full freedom to style on independent Column, Row and Cell level is for us so important that its the deciding point when it comes to choosing component to work with for the future. Knowing this is the first version of the grid compoent on the Silverlight platform makes us ofcourse more patient when it comes to missing functionality, but it would be nice with some "roadmap" indications when it comes to these details.
regards
Oyvind Johnsen