Home Forums WinForms controls Xceed Grid for WinForms Regarding comboboxeditor Reply To: Regarding comboboxeditor

User (Old forums)
Member
Post count: 23064

Hi,

Iam getting an exception here .The code is

Dim

strselect As String

strselect =

“select * from Employee2”

Dim ds As New DataSet

Dim dap As New SqlDataAdapter(strselect, con)

dap.Fill(ds,

“Employee2”)

GridControl1.SetDataBinding(ds,

“Employee2”)

Dim simplecomboboxeditor As New ComboBoxEditor(ds, “Department3”, “Departmentid”, “%Departmentname%”)

simplecomboboxeditor.TemplateControl.BorderStyle = EnhancedBorderStyle.Fixed3D

SetWinComboBoxStyle(simplecomboboxeditor.TemplateControl)

simplecomboboxeditor.TemplateControl.DropDownSize =

New Size(150, 150)

GridControl1.Columns(

“Departmentid”).CellEditorManager = simplecomboboxeditor

GridControl1.Columns(

“Departmentid”).CellViewerManager = New ComboBoxViewer(ds, “Department3”, “Departmentid”, “%Departmentname%”)

I am getting an exception that a “childlist cannot be created for field “department3“”

Imported from legacy forums. Posted by yeswanth (had 518 views)