This question is locked. New answers and comments are not allowed.
I create a cell style in xaml file like below:
<Style x:Key="CellStyle" TargetType="telerik:GridViewCell">
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="BorderBrush" Value="Red"/>
</Style>
and use a class inherited from StyleSelector
public class ColumnStyle : StyleSelector
{
pulic override Style SelectStyle(object item, DependencyObject container)
{
Style style = (App.Current.Resource["CellStyle"]) as Style;
return style;
}
}
finnaly I set the style to every column in my gridview.
But the border seems doesn't work.
And I try to set other propery such as background, font size and ect.
They all work.
Could you give me some advise how can I set the border of the cell>
Thank you in advanced!
<Style x:Key="CellStyle" TargetType="telerik:GridViewCell">
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="BorderBrush" Value="Red"/>
</Style>
and use a class inherited from StyleSelector
public class ColumnStyle : StyleSelector
{
pulic override Style SelectStyle(object item, DependencyObject container)
{
Style style = (App.Current.Resource["CellStyle"]) as Style;
return style;
}
}
finnaly I set the style to every column in my gridview.
But the border seems doesn't work.
And I try to set other propery such as background, font size and ect.
They all work.
Could you give me some advise how can I set the border of the cell>
Thank you in advanced!