Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
add the button to the xamdatagrid header
posted

Hi,

i want to add the button control to the xamdatagrid header. i have created the template and apply as  the label presenter style  in xamdatagrid.

when i applied the style then grid header is not display the line between two columns in header and also fixlocation sign is not display

i have created the below style.

<Style TargetType="{x:Type igDP:LabelPresenter}" x:Key="ButtonNextHeaderStyle">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type igDP:LabelPresenter}">
<StackPanel Orientation="Horizontal">
<Label Content="BrandName"></Label>
<Button Content="&gt;&gt;" Click="ButtonBase_OnClick" Width="20" Height="20"></Button>
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>