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
100
How I can get the Columnname and Valuetype?
posted

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)