Home Forums WinForms controls Xceed Grid for WinForms ComboBox with associated data Reply To: ComboBox with associated data

User (Old forums)
Member
Post count: 23064

Try working on Combobox viewer and editor component, they will simplify your headache for maintaining status description and ID columns on the grid. Moreover its easy just with 4 lines of code, you get your things worked out.

 Hope below few lines help you understand.

Rgds,

Kalpesh..

Dim CBOViewer_Company = New ComboBoxViewer(dsMasters, “Mst_Company”, “AutoID”, “%CName%”)

Dim CBOEditor_Company = New ComboBoxEditor(dsMasters, “Mst_Company”, “AutoID”, “%CName%”)

detail.Columns(

“CompanyID”).CellViewerManager = CBOViewer_Company

detail.Columns(

“CompanyID”).CellEditorManager = CBOEditor_Company

detail.Columns(

“CompanyID”).Title = “Company”

XceedGridContainer.SetWinComboBoxStyle(CBOEditor.TemplateControl)

CBOEditor_Company.TemplateControl.SearchMode = Xceed.Editors.

SearchMode.FullText

CBOEditor_Company.TemplateControl.DropDownSize =

New Size(250, 150)

Imported from legacy forums. Posted by Credits (had 1110 views)