private void _SelectionChangeCommitted(object sender, EventArgs e) { int ColorId = ((DataRowView)(((DataGridViewComboBoxEditingControl)sender).SelectedItem)).Row.Field <int>("ColorId"); UpdateTable(bsPerson.Identifier(), ColorId); Label1.Text = ColorId.ToString(); Label2.Text = bsColorInformation.ColorMessage(ColorId); Panel2.BackColor = Color.FromName(ColorDictionary[ColorId]); }