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
69
I don't get to attach a valuelist to filterrow of a specific column
posted

 Hello,

 I'm not sure what i'm doing wrong here, I get all the items I want in the valuelist I'm creating through code but

it doesn't want to appear as a dropdown in the filterrow for the column I want to use it for.

Following code is used to fill and attach the valuelist.

 <code>

            Dim valueList1 As New ValueList
            Dim valueListItem As ListItem
            Dim list As Dictionary(Of Integer, String)
            list = KlasseData.GetKlasseComboList()

            For Each key As Integer In list.Keys
                valueListItem = New ListItem(list(key), key)
                valueList1.ValueListItems.Add(valueListItem)
            Next

            valueList1.DisplayStyle = ValueListDisplayStyle.DisplayText
           
            Grid1.Columns.FromKey("WagKlasse").Type = ColumnType.DropDownList
            Grid1.Columns.FromKey("WagKlasse").FilterCollectionValues.ValueList = valueList1

</code>

 Valuelist gets 10 items but the filterrow for the specific column stays an edit box.

 TIA

 W.