Click here to Skip to main content
15,886,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
First in "page_load" event i get the data from database attached that data into one "data list"(i.e.datalist1) and again based on the column value(i.e."persons wish list") in "data list" again i got below table(i.e.table no:1) from data base.

table no:1
Product_id product_name category_name
101 glass kitchenware
102 bottle bar ware
103 spoon kitchenware
105 tub bath ware

I am having another "data list" control(i.e.datalist2) and with in this "data list" i placed one repeater control and i want to split the above table (i.e table no:1) like table no 2,3,4 and attach these tables to repeater control.

Table no:2
product_id Product_name category_name
101 glass kitchenware
103 spoon kitchenware

Table no:3
Product_id Product_name category_name
102 bottle bar ware

Table no:4
product_id product_name category_name
105 tub bath ware


Note:The Category_name values are changing based on person wish list according to the changes i want to display tables in repeater control


Please kindly help me
Posted
Updated 28-Jun-13 22:36pm
v3

1 solution

This can bet done using repeater control alone .First you need to sort your data by category name. Then rest of the information you can get from below link

Asp.net repeater – group records or data[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900