Good morning,I have a Xamgrid, which, I have two columns "Comparativa" and "Enviado" which according to thecolumn "Tipo" and "Subtipo" should see a checkbox or not.Right now, I'm doing it by codebehind, applying a style to the cell.But when metconditions to apply the style to the cell line disappears on the right of the cell in the grid and do not know how to fix it.
Hello,
Thank you for your post. I have been looking into it and I can suggest you use Conditional Formatting instead of your approach. Here you can find a sample showing how to use this functionality:
http://samples.infragistics.com/sllob/grid/sl/#/conditional-formatting-rules
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
="FLG_COMPARATIVE">
>
}">
=FLG_COMPARATIVE}" />
And the Style :
<Style x:Key="CheckComparativeStyle" TargetType="ig:CellControl">
<Setter Property="Background" Value="Black"/>
<Setter Property="Foreground" Value="{DynamicResource color_004}"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ig:CellControl">
<StackPanel >
<igEditors:XamCheckEditor Name="ckComparat" IsChecked="{Binding FLG_COMPARATIVE}" IsReadOnly="True" Text="" ></igEditors:XamCheckEditor>
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I used Converter to control the CheckBox’ visibility. Please let me know if this helps you or you need further assistance on this matter.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thank you very much, in the end I got through the example you sent me.thanks again