Пример #1
0
        private void checkbox_ToggleStateChanged(object sender, StateChangedEventArgs args)
        {
            if (_suspendProcessingToggleStateChanged)
            {
                return;
            }

            var valueState = false;

            if (args.ToggleState == ToggleState.On)
            {
                valueState = true;
            }
            GridViewElement.EditorManager.EndEdit();
            TableElement.BeginUpdate();
            for (var i = 0; i < ViewInfo.Rows.Count; i++)
            {
                ViewInfo.Rows[i].Cells[ColumnIndex].Value = valueState;
            }

            TableElement.EndUpdate(false);

            TableElement.Update(GridUINotifyAction.DataChanged);
        }