Editing a cell

Nov 5, 2008 at 3:43 PM
Does anyone knows why I need to click twice into a cell to change the state of a checkbox (in xaml created)?
If I create a checkbox column at runtime by using the DataGridTemplateColumn the state changes directly.

Thanks for your replys.
Nov 5, 2008 at 5:15 PM
Hi WorstCase,

Like other columns, clicking once on the cell selects it and clicking twice puts it in edit mode.  This makes sense on something like TextColumn, but can be confusing on the CheckBoxColumn (however, we left the behavior since we wanted it to be consistent across all stock column types).  You can override this behavior by implementing single click editing.  You can find instructions here: http://www.codeplex.com/wpf/Wiki/View.aspx?title=Single-Click%20Editing&referringTitle=Tips%20%26%20Tricks