Hi,
I tried to implement the MouseLeftButtonDown event and the CellDoubleClick event on a style:
<Style TargetType="{x:Type telerik:GridViewHeaderCell}"> <Setter Property="Foreground" Value="White"/> <EventSetter Event="CellDoubleClick" Handler="SelectDeselectColumn"/> <EventSetter Event="MouseLeftButtonDown " Handler="SelectDeselectColumn2"/></Style>
The "CellDoubleClick" event works fine but the "MouseLeftButtonDown" event doesn't work! I tried each event alone in the style and the MouseLeftButtonDown never works!
In the class "GridViewHeaderCell" there is no event accessible for MouseLeftButtonDown, there is only a method called "OnMouseLeftButtonDown" My guess is that the event MouseLeftButtonDown (or MouseDown) is already handled somewhere else...
If I want to use the method "OnMouseLeftButtonDown" I have to create a new child class that the parent is "GridViewHeaderCell". But I don't know where to allocate the new class in the code. Is there a event like "AutogeneratingCoumn"?
Is there any other options possible to support the MouseLeftButtonDown event or a single click?