{"id":1954,"date":"2022-08-30T15:20:50","date_gmt":"2022-08-30T15:20:50","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/12\/05\/how-to-get-selected-value-from-devexpress-combobox-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:20:50","modified_gmt":"2022-08-30T15:20:50","slug":"how-to-get-selected-value-from-devexpress-combobox-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/how-to-get-selected-value-from-devexpress-combobox-collection-of-common-programming-errors\/","title":{"rendered":"How to get selected value from DevExpress comboBox-Collection of common programming errors"},"content":{"rendered":"<p>Usually the problem, when the ASPxComboBox&#8217;s SelectedItem \/ SelectedIndex is incorrect, occurs when the ASPxComboBox.ValueType property is specified incorrectly.<\/p>\n<p>Ensure that the ValueType is set, corresponding to the &#8220;Data Type Mappings (ADO.NET)&#8221; table.<\/p>\n<p>Try to use the ASPxComboBox.Value property instead:<\/p>\n<pre><code>lblMessage.Text = cmbArchivoModificado.Value != null\n     ?  cmbArchivoModificado.Value.ToString()\n     :  string.Empty;\n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2013-12-05 16:30:20. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>Usually the problem, when the ASPxComboBox&#8217;s SelectedItem \/ SelectedIndex is incorrect, occurs when the ASPxComboBox.ValueType property is specified incorrectly. Ensure that the ValueType is set, corresponding to the &#8220;Data Type Mappings (ADO.NET)&#8221; table. Try to use the ASPxComboBox.Value property instead: lblMessage.Text = cmbArchivoModificado.Value != null ? cmbArchivoModificado.Value.ToString() : string.Empty; Originally posted 2013-12-05 16:30:20.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1954","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1954"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1954\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}