private void UpdateItems() { for (int iRow = 1; iRow < gridContent.RowsCount; ++iRow) { try { SourceGrid.Cells.Editors.NumericUpDown nudEditorNumber = gridContent[iRow, 1].Editor as SourceGrid.Cells.Editors.NumericUpDown; SourceGrid.Cells.Editors.NumericUpDown nudEditorPriority = gridContent[iRow, 2].Editor as SourceGrid.Cells.Editors.NumericUpDown; SourceGrid.Cells.CheckBox checkBoxX = gridContent[iRow, 3] as SourceGrid.Cells.CheckBox; SourceGrid.Cells.CheckBox checkBoxY = gridContent[iRow, 4] as SourceGrid.Cells.CheckBox; SourceGrid.Cells.CheckBox checkBoxZ = gridContent[iRow, 5] as SourceGrid.Cells.CheckBox; Items[iRow - 1].Number = Convert.ToUInt32(nudEditorNumber.GetEditedValue()); Items[iRow - 1].PriorityIndex = Convert.ToInt32(nudEditorPriority.GetEditedValue()); Items[iRow - 1].Orientation = new DCSBBool3() { X = (bool)checkBoxX.Value, Y = (bool)checkBoxY.Value, Z = (bool)checkBoxZ.Value }; } catch (Exception ex) { _log.Error(ex.ToString()); } } }