Results 1 to 3 of 3

Thread: [RESOLVED] ListView question

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Resolved [RESOLVED] ListView question

    Hello Everybody,

    I have three ListView controls showing data correctly. They show data from some table called "classes", each class comes in a category.

    Now I need to show the data category-wise. How can I repeat these three ListView controls so that if there are three categories then it should show three times totalling to 9 ListView controls? Also how can I match the categoryid from category and classes table so that it should show data category-wise? Is there any control we can use as parent and take three list views in it?

    Thanks.

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

    Re: ListView question

    Hey,

    I am not sure that I fully understand exactly what you are getting at, perhaps a diagram would help describe your situation.

    As a general answer, I think a Repeater control would be a good fit.

    Gary

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: ListView question

    A repeater with a listview in its ItemTemplate.

    You'll need to handle the DataBound event, in there, look at the e.Item.DataItem, which will be the 'main' category you're binding it to, and bind your listviews within that event. I think that's what you're getting at.

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