Combobox Item Source in XMAL File.

1 posts, 0 answers
  1. Purushothaman
    Purushothaman avatar
    23 posts
    Member since:
    Jul 2011

    Posted 26 Jul 2011 Link to this post

    Hi Experts,

    Now i am using Combobox in Silverlight.In my project i am using one gridview.inside of gridview am having one combobox.i want to populate that combobox from LIST<>.I am having also List program,

        Private Sub CreateList()
            Dim iDays As Integer
            Dim iHours As Integer
            Dim iTotal As Double = 0
            Dim list As New Collections.Generic.List(Of String)

            For iDays = 0 To 6
                For iHours = 0 To 24
                    If iDays = 0 And iHours = 0 Then
                        iTotal += 1
                        list.Add(iTotal & ":00")
                        If iDays <> 6 And iHours <> 24 Then
                             pgmlist.Add(iTotal & ":30")
                        End If
                    End If

        End Sub

    The name of LIST is pgmlist.Now in design page(XMAL) i am using folloing code.

    ItemsSource="{Binding list}">

    But it didnt populate.Please let me know anyone have the solution for this issue.its urgent..
Back to Top