Hi
When the Grid is in Disabled mode it looks quite odd, as if all the cells are edtiable textboxes
Can we change this by applying custom styles..
I have attached a screen shot of how the grid looks when disabled below
Thanks
Abhi
Abhi,
I am not sure whether this could be done in the xaml. The FieldLayoutSettings' property cannot be set with a trigger or with style. You would have to manually turn that on/off
I have applied the style you mentioned in a more generic manner
<Style x:Key="EditorDisabled" TargetType="{x:Type igEditors:ValueEditor}">
<Style.Triggers> <Trigger Property="IsEnabled" Value="False"> <Setter Property="BorderThickness" Value="0"/> </Trigger>
</Style.Triggers> </Style>
EditorStyle = "{StaticResource EditorDisabled}" in FieldSettings
Just to add to the this cenario.I have put HighlightAlternateRecords in FieldLayoutSettings of
the XamDataGrid as true.
And i want to make this False when the Grid is diabled since this also leaves a trace on the grid
in disabled mode.
I tried some style triggers but couldnt access the property FieldLayoutSettings.HighlightAlternateRecords
Can anybody please help on this.
Thanks and regards
Hi Alex that Works
Hello Abhi,
Yes you can do that by creating styles for the editors you have in the XamDataGrid, like:
<Style TargetType="{x:Type igEditors:XamTextEditor}">
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="BorderThickness" Value="0"/>
</Trigger>
</Style.Triggers>
</Style>
<Style TargetType="{x:Type igEditors:XamNumericEditor}">