private void NewGrid_SelectedCellsChanged(object sender, SelectedCellsChangedEventArgs e) { if (e.AddedCells.Count > 0) { var Id = e.AddedCells[0].Item; _controlManager.setValueFromControls(currentState, e.AddedCells[0].Item); } }