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
445
setting UltraCombo text as UltraGridColumnn EditorComponent
posted

Hi!

I hope someone here can help me besides "you can't get there from here".

I am importing data into an data table then setting a grid to use the data table as a data source. 

I have a ultracombo that I am setting as the editor component for one of the columns. I pre-fill the combo (display member is a string, value member is a guid) and set allownull to true and limittolist to false. Then load the data table with values form my import source and set it as the datasource for the grid. I look up the the import text value to see if it is already contained in my database. If it is, I set the value in the import table to the guid value and everything is perfect (the correct text is displayed in the grid). If I do not already have the text value in my look up table, I set the id column in the table to nothing and put the text value in a separate hidden column. In the InitializeRow event I have the following code:

If CType(e.Row.Cells("ItemTypeId").EditorComponentResolved, Infragistics.Win.UltraWinGrid.UltraCombo).SelectedRow Is Nothing Then
                CType(e.Row.Cells("ItemTypeId").EditorComponentResolved, Infragistics.Win.UltraWinGrid.UltraCombo).Text = e.Row.GetCellValue("ItemType").ToString                
            End If

This does not display the text value in the grid. I get an empty cell. I need the cell to display the text while not have a corresponding value in the the combo.

Any ideas?

Parents Reply Children
No Data