Results 1 to 2 of 2

Thread: Binding SortList to Data component

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2004
    Posts
    541

    Binding SortList to Data component

    Hi all,

    I'm wondering if this can be done. I have a SortedList which represents a shopping cart. The sorted list contains multiple instances of my CartItem class. The CartItem class contains all the fields (product id, price, quantity, etc.)

    I'm wondering if there is a way to bind this to one of the data components (ie DataList, ListView, gridView, dropdownlist, etc.)

    Thanks,

    Strick

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Binding SortList to Data component

    Hello,

    Yes, you should be able to set the DataSource property of the controls to the List.

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width