Items.SelectMany for ListBox in Silverlight

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Parimaladevi
    New Member
    • Dec 2009
    • 6

    Items.SelectMany for ListBox in Silverlight

    Hi,
    i want to select multiple values in ListBox automatically from another list in Silverlight Application.can any one help me.

    thanks in advance
    Parimala
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Not sure what you're trying to do.
    Is the ListBox in an ASP.NET application?
    Is the List in a completely different application (a Sliverlight application)?

    Or are both the list in the same application?

    -Frinny

    Comment

    • Parimaladevi
      New Member
      • Dec 2009
      • 6

      #3
      Hi both r in silverlight application only.
      Actually what i want is i have a list of Values in a generic List that is binded to the list Box.Some of The values from this list has been added to a datagrid. When i Slelect a row in Datagrid i want that Values to be selected in ListBox as SelestedItems.

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        What have you tried so far to solve the problem?

        -Frinny

        Comment

        • Parimaladevi
          New Member
          • Dec 2009
          • 6

          #5
          hi, i tried ListBox.Items.S electMany, but it didn't work.
          tell me how to use this Items.SelectMan y()

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            • When the user selects a row in the GridView:
              • Clear all the selected items in the ListBox
              • For each item in the cell
                • If the item exists in the generic list of items
                  • select that item in the ListBox

            Comment

            • Parimaladevi
              New Member
              • Dec 2009
              • 6

              #7
              hi, Thanks
              it worked now

              Comment

              Working...