private void listaMovimentiAfterHeaderCheckStateChanged(object sender, AfterHeaderCheckStateChangedEventArgs e) { try { if (_headerCheckState != CheckState.Indeterminate) { listaMovimenti.AfterCellUpdate -= listaMovimentiAfterCellUpdate; DataSourceHelper.CheckUnchekColumns(listaMovimenti, e.Column.Key, _headerCheckState); listaMovimenti.AfterCellUpdate += listaMovimentiAfterCellUpdate; } } catch (Exception ex) { _log.ErrorFormat("Errore nell'impostazione del check su click in intestazione - {0} - azienda:{1}", ex, Utility.GetMethodDescription(), Security.Login.Instance.CurrentLogin().Azienda); } }
private void listaAfterHeaderCheckStateChanged(object sender, AfterHeaderCheckStateChangedEventArgs e) { if (_headerCheckState != CheckState.Indeterminate) { lista.AfterCellUpdate -= listaAfterCellUpdate; DataSourceHelper.CheckUnchekColumns(lista, e.Column.Key, _headerCheckState); lista.AfterCellUpdate += listaAfterCellUpdate; // Imposto correttamente l'importo del pagamento var rows = DataGridHelper.GetSelectedRows(lista, true, "fake"); foreach (var ultraGridRow in rows) impostaImportoPagamento(ultraGridRow); } }
private void soggettiAfterHeaderCheckStateChanged(object sender, AfterHeaderCheckStateChangedEventArgs e) { if (!_firstSoggettiOpen && _headerCheckState != CheckState.Indeterminate) { soggetti.AfterCellUpdate -= soggettiAfterCellUpdate; foreach (var row in soggetti.Rows) { if (!row.IsFilteredOut) row.Cells[e.Column].Value = _headerCheckState; if (row.Band.Columns.Exists("Stato")) row.Cells["Stato"].Value = "U"; } soggetti.AfterCellUpdate += soggettiAfterCellUpdate; resetRipartoLotti(true); resetRipartoStabili(true); resetRipartoScale(true); } _firstSoggettiOpen = false; }
/// <summary> /// Grid勾选HeaderCheckBox事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void gdGrid_AfterHeaderCheckStateChanged(object sender, AfterHeaderCheckStateChangedEventArgs e) { gdGrid.UpdateData(); GenerateSelectedValueAndText(); }
private void listaScaleAfterHeaderCheckStateChanged(object sender, AfterHeaderCheckStateChangedEventArgs e) { if (ripartizioneUnita.SelectedTab.Key == "scale") { // La prima volta che si verifica l'evento è dovuto alla impostazione iniziale del check e quindi non deve essere fatto nulla if (!_firstScaleOpen) { UltraGridCell cell = null; if (e.Rows != null) { if (e.Rows.Count > 0) cell = e.Rows[0].Cells[0]; listaScaleCellChange(sender, new CellEventArgs(cell)); } } _firstScaleOpen = false; } }