or
protected override void Adapt(IRegion region, RadPaneGroup regionTarget) |
foreach(Telerik.Windows.Controls.GridViewColumn column in GridView.Columns) |
{ |
Style s = new Style(typeof(GridViewHeaderCell), column.HeaderCellStyle); |
s.Setters.Add(new Setter(GridViewHeaderCell.ForegroundProperty, new SolidColorBrush(Colors.Red))); |
s.Seal(); |
column.HeaderCellStyle = s; |
} |
column.ClearValue(GridViewHeaderCell.ForegroundProperty); //no noticeable impact |
column.ClearValue(GridViewColumn.HeadCellStyleProperty); //no noticeable impact |
//this makes the foreground (some text) disappear altogether |
Style s = new Style(typeof(GridViewHeaderCell), column.HeaderCellStyle); |
s.Setters.Add(new Setter(GridViewHeaderCell.ForegroundProperty, null)); |
s.Seal(); |
column.HeaderCellStyle = s; |
Hi
How can I get single row in the grid and Influence it?
For sample some rows I need to make read only or invisibility
or maybe different style for selected rows?
Best regards
Ehud
<HierarchicalDataTemplate x:Key="GroupListNestedContentTemplate"> |
<bui:UserControlForBottomClass/> |
</HierarchicalDataTemplate> |
<HierarchicalDataTemplate x:Key="GroupListNestedTemplate" ItemsSource="{Binding BottomClass}" ItemTemplate="{StaticResource GroupListNestedContentTemplate}"> |
<bui:UserControlForMiddleLevel /> |
</HierarchicalDataTemplate> |
<HierarchicalDataTemplate x:Key="GroupListTemplate" ItemsSource="{Binding MiddleList}" ItemTemplate="{StaticResource GroupListNestedTemplate}"> |
<bui:UserControlForTopLevel/> |
</HierarchicalDataTemplate> |
<Controls:RadTreeView x:Name="UiElement" DataContext="{Binding}" ItemsSource="{Binding}" ItemTemplate="{StaticResource GroupListTemplate}" IsDragDropEnabled="True" IsSingleExpandPath="True" IsExpandOnSingleClickEnabled="True" /> |
Hi
Is there property for the rows number (IsRowsNumbersEnable) or I need to build it myself like in the Sample?
Best regards
Ehud