Hello
I want to add a check box column
but in a specific row (Value="{x:Null}")
I dont want to see the checkbox
just to have an empty cell
one more thing-
in that specific row I want to have a specific style to the all row
this is my code
the style to the all row
in this row I dont want to see the check box.
the checkbox column
Thanks!
I want to add a check box column
but in a specific row (Value="{x:Null}")
I dont want to see the checkbox
just to have an empty cell
one more thing-
in that specific row I want to have a specific style to the all row
this is my code
the style to the all row
<Style TargetType="{x:Type telerik:GridViewRow}"> |
<Style.Triggers> |
<DataTrigger Binding="{Binding Path=ParentID}" Value="{x:Null}"> |
<DataTrigger.Setters> |
<Setter Property="FontSize" Value="12" /> |
<Setter Property="FontWeight" Value="Bold" /> |
</DataTrigger.Setters> |
</DataTrigger> |
</Style.Triggers> |
</Style> |
the checkbox column
<ControlTemplate x:Key="cellTemplate" TargetType="{x:Type telerik:GridViewCell}"> |
<Border BorderBrush="DarkGray" BorderThickness="0,0,1,1"> |
<CheckBox IsChecked="{Binding Field.Record.Data.General, RelativeSource={RelativeSource TemplatedParent}}" |
HorizontalAlignment="Center" VerticalAlignment="Center" /> |
</Border> |
</ControlTemplate> |
Thanks!