void _pivotGridControl_EditValueChanged(object sender, EditValueChangedEventArgs e)
        {
            PivotDrillDownDataSource ds = e.CreateDrillDownDataSource();

            for (int j = 0; j < ds.RowCount; j++)
            {
                ds[j][e.DataField] = XpandReflectionHelper.ChangeType(e.Editor.EditValue, ds[j][e.DataField].GetType());
            }
        }
Пример #2
0
        private void handleEditorChanged(EditValueChangedEventArgs e)
        {
            var ds = e.CreateDrillDownDataSource();

            for (int i = 0; i < ds.RowCount; i++)
            {
                ds.SetValue(i, _valueField, Convert.ToBoolean(e.Editor.EditValue));
            }
        }
Пример #3
0
        private void pivotGridControl_EditValueChanged(object sender, EditValueChangedEventArgs e)
        {
            PivotDrillDownDataSource ds = e.CreateDrillDownDataSource();

            for (int j = 0; j < ds.RowCount; j++)
            {
                ds[j][e.DataField] = e.Editor.EditValue;
            }
        }
Пример #4
0
        void ChangeCellValue(EditValueChangedEventArgs e, string newValue)
        {
            PivotDrillDownDataSource ds = e.CreateDrillDownDataSource();
            ds.SetValue(0, pivotGridFieldValue, newValue);                  //меняем в pivotGridControl

            string fullName = ds.GetValue(0, pivotGridFieldFullName).ToString();
            int selectedYear = yearPicker.Value.Year;
            int selectedMonth = comboBoxMonth.SelectedIndex + 1;
            int cellDay = (int)(int)ds.GetValue(0, pivotGridFieldDay);

            UpdateSourceCell(newValue, fullName, new DateTime(selectedYear, selectedMonth, cellDay));   //обновляем бд
        }
        private void handleEditorChanged(EditValueChangedEventArgs e)
        {
            var ds = e.CreateDrillDownDataSource();

            for (int i = 0; i < ds.RowCount; i++)
            {
                var dr                    = ds[i];
                var compoundName          = dr.StringValue(Constants.CategoryOptimizations.COMPOUND);
                var calculationMethodName = dr.StringValue(Constants.CategoryOptimizations.CALCULATION_METHOD);
                var categoryName          = dr.StringValue(Constants.CategoryOptimizations.CATEGORY);
                var selected              = Convert.ToBoolean(e.Editor.EditValue);
                ds.SetValue(i, _valueField, selected);
                _presenter.CalculationMethodSelectionChanged(compoundName, categoryName, calculationMethodName, selected);
            }
        }
        private void pivotGridControl1_EditValueChanged(object sender, EditValueChangedEventArgs e)
        {
            PivotDrillDownDataSource ds = e.CreateDrillDownDataSource();

            ds.SetValue(0, "data", e.Editor.EditValue);
        }
 void _pivotGridControl_EditValueChanged(object sender, EditValueChangedEventArgs e) {
     PivotDrillDownDataSource ds = e.CreateDrillDownDataSource();
     for (int j = 0; j < ds.RowCount; j++) {
         ds[j][e.DataField] = XpandReflectionHelper.ChangeType(e.Editor.EditValue, ds[j][e.DataField].GetType());
     }
 }
 void _pivotGridControl_EditValueChanged(object sender, EditValueChangedEventArgs e) {
     PivotDrillDownDataSource ds = e.CreateDrillDownDataSource();
     for (int j = 0; j < ds.RowCount; j++) {
         ds[j][e.DataField] = Convert.ToDouble(e.Editor.EditValue);
     }
 }