I add a Button into the Columnheader of each Column to include a Filterfunction.
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<DockPanel>
<Button Name="buttonSearch" DockPanel.Dock="Left" Content="Search" Click="buttonSearch_Click"/>
<ContentPresenter ContentTemplate="{TemplateBinding Content}"
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
VerticalAlignment="{TemplateBinding VerticalAlignment}" />
</DockPanel>
</DataTemplate>
</Setter.Value>
</Setter>
My problems are:
- how can I find out on which column the button was clicked?
- how can I find out the valuetype of the column? (string, double, int)
nobody any idea?