views:

1577

answers:

2

Hey guys.

I have Datagrid in WPF form with DataGridCheckBoxColumn, but I did not find any click, Checked and unchecked for it...

Are these event available for DataGridCheckBoxColumn ? If not please suggest some workaround ?

Thanks

+1  A: 

Won't these be accessed via the individual DataGridCell rather than the whole column?

I know these events aren't directly on the DataGridCell, but there is the CommandBindings method:

    // Summary:
    //     Gets a collection of System.Windows.Input.CommandBinding objects associated
    //     with this element. A System.Windows.Input.CommandBinding enables command
    //     handling for this element, and declares the linkage between a command, its
    //     events, and the handlers attached by this element.
    //
    // Returns:
    //     The collection of all System.Windows.Input.CommandBinding objects.

Does this help?

ChrisF
A: 
<wpf:DataGridCheckBoxColumn Header="Cool?" Width="40" Binding="{Binding IsCool}"/>

HTH, Kent

Kent Boogaart