I know I have to be doing something wrong but just can't find the issue. I am using v3.9 of the .Net Grid.
Problem: When the grid is displayed in the form, the combobox column is displaying the value of the column from the binding dataset for the grid. When I click on the cell, the combox displays the appropriate caption information. But when I move off the cell, the value either becomes empty or returns to the original value of the row from the binding dataset.
The dataset contains multiple datatables without any relations established. The grid is bound to one of the datatables and the combobox is bound to a different datatable.
The key value for the combo box is a string value (Alpha-Numeric). Not a typical numeric Id value showing a string Caption.
What is going wrong?
Here is my code:
'Set the Grid Properties
grdExportDetails.Enabled = True
grdExportDetails.BeginInit()
'Datasource
grdExportDetails.SetDataBinding(dsExportDetails, "ProgramBase")
'Headers
grdExportDetails.HeaderRows.Add(columnManagerRow)
grdExportDetails.Columns("ProgramId").Visible = False
grdExportDetails.Columns("PackageId").Visible = False
'Editing with single click
grdExportDetails.SingleClickEdit = True
'Checkbox column
grdExportDetails.Columns("Selected").VisibleIndex = 0
grdExportDetails.Columns("Selected").Width = 50
grdExportDetails.Columns("Selected").CellEditorManager = New CheckBoxEditor()
grdExportDetails.Columns("Selected").CellViewerManager = New CheckBoxViewer()
grdExportDetails.Columns("Selected").HorizontalAlignment = HorizontalAlignment.Center
grdExportDetails.Columns("Selected").VerticalAlignment = VerticalAlignment.Center
'Dropdown columns
'Currency
CurrencyComboBoxEditor = New ComboBoxEditor(dsExportDetails, "ExchangeRates", "ExchangeSetName", "%RateDescriptor%")
CurrencyComboBoxEditor.TemplateControl.AllowDropDown = True
CurrencyComboBoxEditor.TemplateControl.AllowFreeText = False
grdExportDetails.Columns("ProgBaseCurrency").CellEditorManager = CurrencyComboBoxEditor
grdExportDetails.Columns("ProgBaseCurrency").HorizontalAlignment = HorizontalAlignment.Left
'Readonly the other columns
grdExportDetails.Columns("ProgBaseWeight").ReadOnly = True
grdExportDetails.Columns("ProgBaseDistance").ReadOnly = True
grdExportDetails.Columns("ProgBaseEnergy").ReadOnly = True
grdExportDetails.Columns("Idnum").ReadOnly = True
grdExportDetails.EndInit()