User (Old forums)MemberNovember 6, 2006 at 4:06 pmPost count: 23064
Ok, this should be an easy one. I am simply trying to get a combo box editor to work. I followed the sample code exactly and when I run it nothing shows up in the column with the combo. If I try to edit it, nothing happens.
Here is my code.
Private Sub BuildRows()
If _AccountTypes Is Nothing Then
_AccountTypes = AccountTypeCommand.LoadAccountTypes()
For Each cd As ClassificationData In _ClassData
Dim row As Xceed.Grid.DataRow = gridClassifications.DataRows.AddNew()
row.Cells(UIConstants.ClassificationColumns.ClassID).Value = cd.ID
row.Cells(UIConstants.ClassificationColumns.ClassDescription).Value = cd.Description
‘need a combo box editor for this one
Dim simpleComboBoxEditor As New ComboBoxEditor(_AccountTypes, “Table”, “ACCOUNT_TYPE”)
simpleComboBoxEditor.TemplateControl.DropDownSize = New Size(50, 150)
row.Cells(UIConstants.ClassificationColumns.AccountType).CellEditorManager = simpleComboBoxEditor
‘This ain’t working at the moment..
row.Cells(UIConstants.ClassificationColumns.AccountType).CellViewerManager = New ComboBoxViewer(_AccountTypes, “Table”, “ACCOUNT_TYPE”)
row.Cells(UIConstants.ClassificationColumns.AccountType).Value = cd.AccountType
row.Tag = cd
The _AccountTypes variable is simply a dataset with my goodies.
I noticed that if I comment out the line under “This ain’t working at the moment” that the data from my database will appear, but I still get no combo (which makes sense in that case).
Anyways, I hope someone can help. I am guessing it is something stupid.
Imported from legacy forums. Posted by flyingpenguin (had 2423 views)User (Old forums)MemberNovember 8, 2006 at 3:47 pmPost count: 23064
Is there noone who can help me with this?
Imported from legacy forums. Posted by flyingpenguin (had 256 views)User (Old forums)MemberNovember 9, 2006 at 10:07 amPost count: 23064
It is possible that the ValueMember (Account_Type) is not the same type as the column, thus the editor cannot be displayed?
You can send a sample application that reproduces the problem to <a href=”mailto:email@example.com”>support</a> if you can’t find a solution.
Imported from legacy forums. Posted by André (had 3248 views)
- You must be logged in to reply to this topic.