Ejemplo n.º 1
0
        /// <summary>
        /// Toggle CheckBox of a row in DataGrid
        /// </summary>
        /// <param name="row">the DataGridRow where CheckBox shall be toggled</param>
        private void ToggleRowCheckBox(DataGridRow row)
        {
            // get CheckBox from CheckBoxColumn (name == null)
            CheckBox checkBox = row.FindChild <CheckBox>(null);

            // toggle CheckBox
            checkBox.IsChecked ^= true;
        }