I have a column with checkbox, all the checkbox are aligned in center, but the filterrow check box is aligned to left by default. How can we able to align the filterrow checkbox to center?
Thanks in advance.
You achieve this by changing the control template of the FilterCell. Here's an example: <xcdg:FilterRow> <xcdg:FilterCell FieldName="IsBig"> <xcdg:FilterCell.Template> <ControlTemplate TargetType="{x:Type xcdg:FilterCell}"> <CheckBox HorizontalAlignment="Center" IsChecked="{Binding Path=Content, RelativeSource={RelativeSource AncestorType={x:Type xcdg:FilterCell}}}"/> </ControlTemplate> </xcdg:FilterCell.Template> </xcdg:FilterCell> </xcdg:FilterRow>
Here's an example:
<xcdg:FilterRow>
Hi Michel,
Thankyou for the quick response. it worked fine .
Can you please suggest do we have any option to implement the same in generic style , so that it can be applied for all the checkbox columns?
Thanks
Murali