private void repositoryItemComboBox2_ParseEditValue(object sender, ConvertEditValueEventArgs e)
        {
            if (((ComboBoxEdit)sender).SelectedIndex == -1)
            {
                return;
            }
            IdName idName = (IdName)((ComboBoxEdit)sender).SelectedItem;

            e.Value = (object)idName.Name;
            AtGrid.getDataRow((Control)this.gridControlSystemRel)["idsystemdetail2"] = (object)idName.Id;
        }
Example #2
0
        private void repositoryItemComboBoxDocAppearance_ParseEditValue(object sender, ConvertEditValueEventArgs e)
        {
            if (((ComboBoxEdit)sender).SelectedIndex == -1)
            {
                return;
            }
            IdName idName = (IdName)((ComboBoxEdit)sender).SelectedItem;

            e.Value = (object)idName.Name;
            AtGrid.getDataRow((Control)this.gridControlDocState)["iddocappearance"] = (object)idName.Id;
        }