|
-
Mar 8th, 2010, 08:36 AM
#1
Thread Starter
Frenzied Member
[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.
-
Mar 8th, 2010, 09:19 AM
#2
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
-
Mar 8th, 2010, 03:04 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|