Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
725
UltraCombo in UltraGridCell's EditorControl, with different valuelist for each row
posted

I'm having a heck of a time getting this to work.  I am using an UltraCombo as the EditorControl in a grid cell.  I'm using this because I need to display multiple columns in the dropdown.  Also, each row has to have a different DataSource for the UltraCombo.

I have assigned the DataSource for the UltraCombo (it is valid, with rows as expected), but the displayed text in the cell is just the value, not the specified display column, and when clicking the dropdown in the cell, no content is shown.  

I have never used the UltraCombo in this scenario before..

Here's code I have setting the valuelist and EditorControl in the grid's InitializeRow event. I've also tried this in the AfterRowActivate event handler to the same result.

Me.cboAccount.DataSource = CurrentRowDataTable

Me.cboAccount.DisplayMember = "AccountName"

Me.cboAccount.ValueMember = "AccountID"

e.Row.Cells("AccountID").EditorControl = Me.cboAccount

 

Probably missing something obvious... Thanks in advance..