How to get selected value from DevExpress comboBox-Collection of common programming errors

Usually the problem, when the ASPxComboBox’s SelectedItem / SelectedIndex is incorrect, occurs when the ASPxComboBox.ValueType property is specified incorrectly.

Ensure that the ValueType is set, corresponding to the “Data Type Mappings (ADO.NET)” table.

Try to use the ASPxComboBox.Value property instead:

lblMessage.Text = cmbArchivoModificado.Value != null
     ?  cmbArchivoModificado.Value.ToString()
     :  string.Empty;