I am modifying an ASPX application, I need to add a combo box with a certain data dictionary. basically duplicate the way in which the other columns were defined and create a data source like the ones that were already created, in my opinion, everything is the same... When running the application the new field appears, the combo box has the correct elements , but it doesn't allow me to select an element, almost as if it had the read only property. I can't find what the difference is, what should I do to make it editable? I share image and code.
<dx:ASPxGridView ID="ASPxGridView3" runat="server" AutoGenerateColumns="False" DataSourceID="eventos_dtl_com" OnDataBound="ASPxGridView3_DataBound" OnBeforeGetCallbackResult="ASPxGridView3_BeforeGetCallbackResult" SettingsPager-PageSizeItemSettings-ShowAllItem="true" SettingsPager-PageSizeItemSettings-ShowPopupShadow="true" KeyFieldName="serie_int;folio_int;pt;clavePed" OnBatchUpdate="ASPxGridView3_BatchUpdate" OnRowUpdated="ASPxGridView3_RowUpdated" Theme="Office2010Black" OnHtmlDataCellPrepared="ASPxGridView3_HtmlDataCellPrepared" OnInitNewRow="ASPxGridView3_InitNewRow" OnCellEditorInitialize="ASPxGridView3_CellEditorInitialize">
<SettingsPager AlwaysShowPager="True" NumericButtonCount="5">
<PageSizeItemSettings ShowAllItem="True"></PageSizeItemSettings>
</SettingsPager>
<SettingsEditing Mode="Inline" EditFormColumnCount="10" UseFormLayout="False">
<BatchEditSettings EditMode="Row" />
</SettingsEditing>
<Settings ShowGroupedColumns="True" ShowGroupFooter="VisibleAlways" ShowFooter="True" ShowStatusBar="Visible" ShowTitlePanel="True" />
<SettingsBehavior AutoExpandAllGroups="True" AllowFixedGroups="True" AllowFocusedRow="True" ConfirmDelete="True" />
<SettingsPopup>
<EditForm AllowResize="True" />
</SettingsPopup>
<SettingsText Title="Facturas a a generar" />
<Columns>
<dx:GridViewCommandColumn ShowInCustomizationForm="True" VisibleIndex="0" ShowEditButton="True" ShowDeleteButton="True" ShowNewButtonInHeader="True"></dx:GridViewCommandColumn>
<dx:GridViewDataTextColumn FieldName="partida" ShowInCustomizationForm="True" VisibleIndex="1" ReadOnly="True"></dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="serie_int" ShowInCustomizationForm="True" VisibleIndex="2" ReadOnly="True"></dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="folio_int" ShowInCustomizationForm="True" VisibleIndex="3" ReadOnly="True"></dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="pt" ShowInCustomizationForm="True" VisibleIndex="4" Width="150px"></dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="ptDesc" ShowInCustomizationForm="True" VisibleIndex="5" Width="200px"></dx:GridViewDataTextColumn>
<dx:GridViewDataComboBoxColumn FieldName="clavePed" ShowInCustomizationForm="True" VisibleIndex="7">
<PropertiesComboBox>
<Items>
<dx:ListEditItem Text="Return" Value="RT" />
<dx:ListEditItem Text="Definitive" Value="A1" />
</Items>
</PropertiesComboBox>
</dx:GridViewDataComboBoxColumn>
<dx:GridViewDataComboBoxColumn FieldName="FraccionArancelaria" VisibleIndex="8">
<PropertiesComboBox EnableSynchronization="False" DataSourceID="ComercioFraccion" ValueField="fraccion" TextField="descr"></PropertiesComboBox>
</dx:GridViewDataComboBoxColumn>
<dx:GridViewDataTextColumn FieldName="CantidadAduana" ShowInCustomizationForm="True" VisibleIndex="9" UnboundType="Decimal">
<PropertiesTextEdit DisplayFormatString="{0:0.000}" DisplayFormatInEditMode="True"></PropertiesTextEdit>
</dx:GridViewDataTextColumn>
<dx:GridViewDataComboBoxColumn FieldName="UnidadAduana" VisibleIndex="10">
<PropertiesComboBox EnableSynchronization="False" DataSourceID="ComercioUnidad" ValueField="UnidadAduana" TextField="Unidad"></PropertiesComboBox>
</dx:GridViewDataComboBoxColumn>
<dx:GridViewDataTextColumn FieldName="ValorUnitarioAduana" ShowInCustomizationForm="True" VisibleIndex="11">
<PropertiesTextEdit DisplayFormatInEditMode="True" DisplayFormatString="{0:0.00}"></PropertiesTextEdit>
</dx:GridViewDataTextColumn>
<dx:GridViewDataTextColumn FieldName="ValorDolares" ShowInCustomizationForm="True" VisibleIndex="12" ReadOnly="True">
<PropertiesTextEdit DisplayFormatInEditMode="True" DisplayFormatString="{0:0.00}"></PropertiesTextEdit>
</dx:GridViewDataTextColumn>
<dx:GridViewDataComboBoxColumn FieldName="ClaveUnidad" VisibleIndex="6">
<PropertiesComboBox EnableSynchronization="False" DataSourceID="CfdiClaveUnidad" ValueField="clave" TextField="descr"></PropertiesComboBox>
</dx:GridViewDataComboBoxColumn>
</Columns>
I show the combo box displayed, and even so it does not allow selecting elements:
If we check the forums of this component
ASPxGridView
GridViewDataComboBoxColumn - Can't select any entries in an ASPxComboBox in inline edit mode
mentions that the value you put in
FieldName
must be a property that exists in the data source, so the columnClaveUnidad
must exist inDataSourceID="eventos_dtl_com"