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
115
EditorWithCombo ValueList not populating
posted

I'm trying to set the editor for all the cells in the 1st row of my grid (which happens to be fixed).  I think I'm doing this right, but for some reason I can't get the settings to pass up the valuelist to the editor...

 

    Private Sub grdDatasource_InitializeRow(sender As Object, e As Infragistics.Win.UltraWinGrid.InitializeRowEventArgs) Handles grdDatasource.InitializeRow
        If grdDatasource.Rows.FixedRows.Contains(e.Row) Then
            Dim theSettings As New DefaultEditorOwnerSettings
            Dim MyDropdownList As New UltraDropDown
            Dim tblList As New DataTable
            tblList.Columns.Add("ColName")
            tblList.Rows.Add("col1")
            tblList.Rows.Add("col2")
            MyDropdownList.SetDataBinding(tblList, "ColName")

            MyDropdownList.ValueMember = "ColName"
            MyDropdownList.DisplayMember = "ColName"
            theSettings.ValueList = MyDropdownList

            For Each CurrentCell As Infragistics.Win.UltraWinGrid.UltraGridCell In e.Row.Cells
                Dim mySettings As New DefaultEditorOwnerSettings()
                mySettings.ValueList = MyDropdownList
                Dim myEditor As New EditorWithCombo(New DefaultEditorOwner(mySettings))
                CurrentCell.Editor = myEditor
            Next
        End If
    End Sub

 

 

 

mySettings.Valuelist appears to have the proper list bound to the table, but once I create the meEditor object, passing in the mySettings, the valuelist becomes NOTHING.

Any idea why the Editor isn't picking up the Valuelist from the settings object?